Get Tree Document At Commit
A node’s tree document as it was at a commit. Read-only.
The same document GET .../tree/{branch} returned while this commit was
the head, without expected_head_commit: push rejects it, so history
can’t be pushed back by accident. status.commit_id names the commit.
status (parents, ingress/egress) and the _title annotations are
current, not historical. {branch} is not used: a commit belongs to the
node, not to one branch.
Authorizations
Path Parameters
Response
Successful Response
GET /tree/{branch}. Valid input to PUT /tree/{branch}/push as returned:
edit state, set message, send it back. expected_head_commit is the
branch head this document was read at; a stale one is rejected with 409.
Read at a commit (GET .../commits/{commit_id}/tree) the document is
read-only: it has no expected_head_commit, so push rejects it (422).