Git

比较提交差异。Compare commits.

比较两个提交、分支或标签之间的差异。base_head 参数格式为 base...head,返回两者之间的提交列表和文件变更信息。 Compare the differences between two commits, branches, or tags. The base_head parameter format is base...head. Returns the commit list and file change information between them. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-code:r

get/{repo}/-/git/compare/{base_head}

Request

  • Base URL: https://api.cnb.cool (the document declares no server; this is the origin it was published from)
  • URL: https://api.cnb.cool/{repo}/-/git/compare/{base_head}
  • Auth: API key in header Authorization

Path parameters

repostring required

不带.git后缀的仓库名称。格式:组织名称/仓库名称。Repository name without .git suffix. Format: org/repo.

base_headstring required

用于Git比较操作的基准和头部分支或提交的SHA值。格式:base...head

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.