v2
Swagger 2.02026-08-01331211921.0 KBCommits
Compare two commit diff stats
Produces a response in JSON format with a record for every path modified, including information on the type of the change and the number of lines added and removed.
Single commit spec
If the spec argument to this API is a single commit, the diff is produced against the first parent of the specified commit.
Two commit spec
Two commits separated by .. may be provided as the spec, e.g., 3a8b42..9ff173. When two commits are provided and the topic query parameter is true, this API produces a 2-way three dot diff. This is the diff between source commit and the merge base of the source commit and the destination commit. When the topic query param is false, a simple git-style diff is produced.
The two commits are interpreted as follows:
- First commit: the commit containing the changes we wish to preview
- Second commit: the commit representing the state to which we want to compare the first commit
- Note: This is the opposite of the order used in git diff.
get/repositories/{workspace}/{repo_slug}/diffstat/{spec}
Response
The diff stats