v1
latestOpenAPI 3.0.32026-07-22115106141.4 KBRepository Content Comparison
Compare two refs (commit/branch/workspace/tag/tree) in this repo
get/repos/{repo_id}/compare
Query parameters
base_idstring
A workspace_id, branch_id, commit_id or tag_id. If omitted, assuming the empty tree, unless other_id is a workspace, in which case base_id is assumed to be the workspace base ref.
other_idstring
Example:example_id
A reference to a source version from which changes will be taken
Response
A list of tree comparison objects
Example response
{
"items": [
{
"base_item": {
"path": "hello.cc",
"blob": {
"storage_uri": "repo_id/2aae6c35c94fcfb415dbe95f408b9ce91ee846ed"
}
},
"other_item": {
"path": "hello.cc",
"blob": {
"storage_uri": "repo_id/2aae6c35c94fcfb415dbe95f408b9ce91ee846ed"
}
}
}
]
}