CommitDiff
Returns a stream of commit diffs with patches chunked over messages.Request
The repository to retrieve diffs from
The commit ID to compare from (base)
The commit ID to compare to (head)
Whether to ignore whitespace changes in the diff
Optional list of paths to limit the diff to specific files
Whether to collapse large diffs
Whether to enforce max_files, max_lines, and max_bytes limits
Maximum number of files to include (only enforced when enforce_limits is true)
Maximum number of lines to include (only enforced when enforce_limits is true)
Maximum number of bytes to include (only enforced when enforce_limits is true)
Limitation of a single diff patch. Patches surpassing this limit are pruned. If set to 0, empty patches are returned.
Safe maximum files limit (only enforced when collapse_diffs is true)
Safe maximum lines limit (only enforced when collapse_diffs is true)
Safe maximum bytes limit (only enforced when collapse_diffs is true)
The mode for generating diffs. Values:
DEFAULT (linewise diff for text files), WORDDIFF (word-level diff for whitespace-separated words)Response (Stream)
Original file path
New file path
Blob ID of the original file (from git diff —full-index)
Blob ID of the new file (from git diff —full-index)
File mode of the original file
File mode of the new file
Whether the file is binary
The raw patch data for this chunk
Indicates the end of the patch for this file
Indicates the diff overflowed according to the specified limitations. Only this attribute will be set when true.
Indicates the patch surpassed a safe limit and was pruned, but can be requested in full on a separate request
Indicates the patch was pruned due to exceeding a hard limit and cannot be expanded
CommitDelta
Returns a stream of deltas between commits (file changes without patch data).Request
The repository to retrieve deltas from
The commit ID to compare from
The commit ID to compare to
Optional list of paths to limit the delta to specific files
Response (Stream)
Array of commit deltas
CommitDelta
Original file path
New file path
Blob ID of the original file
Blob ID of the new file
File mode of the original file
File mode of the new file
RawDiff
Returns the raw diff output as a stream.Request
The repository to retrieve the raw diff from
The commit ID to compare from
The commit ID to compare to
Response (Stream)
Chunk of raw diff data
RawPatch
Returns the raw patch output as a stream.Request
The repository to retrieve the raw patch from
The commit ID to compare from
The commit ID to compare to
Response (Stream)
Chunk of raw patch data
DiffStats
Returns statistics about changes between commits.Request
The repository to retrieve diff statistics from
The commit ID to compare from
The commit ID to compare to
Response (Stream)
Array of diff statistics for changed files
DiffStats
File path
Number of lines added
Number of lines deleted
Original file path (for renamed files)
FindChangedPaths
Returns a list of files that have been changed in the given commits. Each commit is compared to its parent. Merge commits show files that are different to all of their parents.Request
The repository to search for changed paths
List of commit IDs to find changed paths for
Response (Stream)
Array of changed paths with their status
ChangedPaths
File path that was changed
Type of change. Values:
ADDED, MODIFIED, DELETED, TYPE_CHANGE, COPIED