CodeCommit.Client.
get_differences
(**kwargs)¶Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID, or other fully qualified reference). Results can be limited to a specified path.
See also: AWS API Documentation
Request Syntax
response = client.get_differences(
repositoryName='string',
beforeCommitSpecifier='string',
afterCommitSpecifier='string',
beforePath='string',
afterPath='string',
MaxResults=123,
NextToken='string'
)
[REQUIRED]
The name of the repository where you want to get differences.
afterCommitSpecifier
value are shown. If you do not use beforeCommitSpecifier
in your request, consider limiting the results with maxResults
.[REQUIRED]
The branch, tag, HEAD, or other fully qualified reference used to identify a commit.
beforePath
and afterPath
are not specified, differences are shown for all paths.dict
Response Syntax
{
'differences': [
{
'beforeBlob': {
'blobId': 'string',
'path': 'string',
'mode': 'string'
},
'afterBlob': {
'blobId': 'string',
'path': 'string',
'mode': 'string'
},
'changeType': 'A'|'M'|'D'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
differences (list) --
A data type object that contains information about the differences, including whether the difference is added, modified, or deleted (A, D, M).
(dict) --
Returns information about a set of differences for a commit specifier.
beforeBlob (dict) --
Information about a beforeBlob
data type object, including the ID, the file mode permission code, and the path.
blobId (string) --
The full ID of the blob.
path (string) --
The path to the blob and associated file name, if any.
mode (string) --
The file mode permissions of the blob. File mode permission codes include:
100644
indicates read/write100755
indicates read/write/execute160000
indicates a submodule120000
indicates a symlinkafterBlob (dict) --
Information about an afterBlob
data type object, including the ID, the file mode permission code, and the path.
blobId (string) --
The full ID of the blob.
path (string) --
The path to the blob and associated file name, if any.
mode (string) --
The file mode permissions of the blob. File mode permission codes include:
100644
indicates read/write100755
indicates read/write/execute160000
indicates a submodule120000
indicates a symlinkchangeType (string) --
Whether the change type of the difference is an addition (A), deletion (D), or modification (M).
NextToken (string) --
An enumeration token that can be used in a request to return the next batch of the results.
Exceptions
CodeCommit.Client.exceptions.RepositoryNameRequiredException
CodeCommit.Client.exceptions.RepositoryDoesNotExistException
CodeCommit.Client.exceptions.InvalidRepositoryNameException
CodeCommit.Client.exceptions.InvalidContinuationTokenException
CodeCommit.Client.exceptions.InvalidMaxResultsException
CodeCommit.Client.exceptions.InvalidCommitIdException
CodeCommit.Client.exceptions.CommitRequiredException
CodeCommit.Client.exceptions.InvalidCommitException
CodeCommit.Client.exceptions.CommitDoesNotExistException
CodeCommit.Client.exceptions.InvalidPathException
CodeCommit.Client.exceptions.PathDoesNotExistException
CodeCommit.Client.exceptions.EncryptionIntegrityChecksFailedException
CodeCommit.Client.exceptions.EncryptionKeyAccessDeniedException
CodeCommit.Client.exceptions.EncryptionKeyDisabledException
CodeCommit.Client.exceptions.EncryptionKeyNotFoundException
CodeCommit.Client.exceptions.EncryptionKeyUnavailableException