v1

latestOpenAPI 3.0.32026-07-24354865.6 KB
Comparison

Segmented file comparison

Returns a comparison for a specific file path only showing the segments of the file that are impacted instead of all lines in file

get/{service}/{owner_username}/repos/{repo_name}/compare/segments/{file_path}

Path parameters

file_pathstring required

file path

owner_usernamestring required

username from service provider

repo_namestring required

repository name

service'bitbucket' | 'bitbucket_server' | 'github' | 'github_enterprise' | 'gitlab' | 'gitlab_enterprise' required

Git hosting service provider

Query parameters

basestring

base commit SHA (head also required)

headstring

head commit SHA (base also required)

pullidinteger

pull ID on which to perform the comparison (alternative to specifying base and head)

Response

segmentsstring required