repositories
Get diff statistics between two commits
Returns the number of added and deleted lines for every file that differs between two refs.
get/api/v4/projects/{id}/repository/diff_stats
Request
- Base URLhttps://gitlab.com
- Authnone declared
Path parameters
idstring required
The ID or URL-encoded path of the project
Query parameters
fromstring required
The commit SHA or branch/tag to compare from
tostring required
The commit SHA or branch/tag to compare to
pageinteger
Current page number
per_pageinteger
Number of items per page
Response
Get diff statistics between two commits
Example response
{
"path": "app/models/user.rb",
"old_path": "app/models/user.rb",
"additions": 10,
"deletions": 3
}Changes
No recorded changes to this operation across all 5 revisions of this API.