merge_branches_by_fast_forward(**kwargs)¶Merges two branches using the fast-forward merge strategy.
See also: AWS API Documentation
Request Syntax
response = client.merge_branches_by_fast_forward(
repositoryName='string',
sourceCommitSpecifier='string',
destinationCommitSpecifier='string',
targetBranch='string'
)
[REQUIRED]
The name of the repository where you want to merge two branches.
[REQUIRED]
The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
[REQUIRED]
The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
dict
Response Syntax
{
'commitId': 'string',
'treeId': 'string'
}
Response Structure
(dict) --
commitId (string) --
The commit ID of the merge in the destination or target branch.
treeId (string) --
The tree ID of the merge in the destination or target branch.
Exceptions
CodeCommit.Client.exceptions.RepositoryNameRequiredExceptionCodeCommit.Client.exceptions.InvalidRepositoryNameExceptionCodeCommit.Client.exceptions.RepositoryDoesNotExistExceptionCodeCommit.Client.exceptions.TipsDivergenceExceededExceptionCodeCommit.Client.exceptions.CommitRequiredExceptionCodeCommit.Client.exceptions.InvalidCommitExceptionCodeCommit.Client.exceptions.CommitDoesNotExistExceptionCodeCommit.Client.exceptions.InvalidTargetBranchExceptionCodeCommit.Client.exceptions.InvalidBranchNameExceptionCodeCommit.Client.exceptions.BranchNameRequiredExceptionCodeCommit.Client.exceptions.BranchNameIsTagNameExceptionCodeCommit.Client.exceptions.BranchDoesNotExistExceptionCodeCommit.Client.exceptions.ManualMergeRequiredExceptionCodeCommit.Client.exceptions.ConcurrentReferenceUpdateExceptionCodeCommit.Client.exceptions.EncryptionIntegrityChecksFailedExceptionCodeCommit.Client.exceptions.EncryptionKeyAccessDeniedExceptionCodeCommit.Client.exceptions.EncryptionKeyDisabledExceptionCodeCommit.Client.exceptions.EncryptionKeyNotFoundExceptionCodeCommit.Client.exceptions.EncryptionKeyUnavailableException