Git

下载提交变更文件。Download changed files.

打包下载指定提交中变更的文件,仅包含该提交相对于父提交新增或修改的文件内容,适合获取单次提交变更内容的场景。 Download changed files in the specified commit as an archive, only including files added or modified in this commit relative to its parent. Ideal for obtaining changed files from a single commit. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-code:r

get/{repo}/-/git/archive-commit-changed-files/{sha1}

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/archive-commit-changed-files/{sha1}
  • Auth: API key in header Authorization

Path parameters

repostring required

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

sha1string required

提交的哈希值。Commit hash.

Changes

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