repositories

List files changed between two commits

Returns the path, change status, and file modes for every path that differs between two refs.

get/api/v4/projects/{id}/repository/changed_paths

Request

  • Base URL
    https://gitlab.com
  • Auth
    none 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

find_renamesboolean

If true, detect file renames

pageinteger

Current page number

per_pageinteger

Number of items per page

Response

List files changed between two commits

statusstring required
pathstring required
old_pathstring required
old_modestring required
new_modestring required

Example response

{
  "status": "MODIFIED",
  "path": "app/models/user.rb",
  "old_path": "app/models/user.rb",
  "old_mode": "100644",
  "new_mode": "100644"
}

Changes

No recorded changes to this operation across all 5 revisions of this API.