Fossil

JSON API: /branch
Login

JSON API: /branch

(⬑JSON API Index)

Jump to:


Branch List

Status: implemented, at least in draft form, on 20110921.

Required privileges: "o"

Request: /json/branch/list

Response payload example:

{
"range":"closed",
"current":"json", /* only when there is a local opened checkout */
"branches":[
  "artifact_description",
  "bch",
  "ben-changes-report",
  "ben-safe-make",
  "ben-security",
  "ben-testing",
  …
]
}

Potential TODO: add "tip" property which names the most recently modified branch? (How to get this?)

HTTP GET/POST.payload options:

CLI mode options (same semantics as HTTP equivalents), must come last on the CLI:

Create Branch

Status: implemented 20111002

Required privileges: "w"

Request: /json/branch/create

Request options:

Response payload example:

{
"name":"my-branch",
"basis":"my-other-branch",
"uuid":"de8115db4ce388ed8d0af666ae7d90e1410be4ca",
"isPrivate":true,
"bgColor":"#ff0000"
}