CodeCommit / Client / merge_branches_by_fast_forward
merge_branches_by_fast_forward#
- CodeCommit.Client.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' )
- Parameters:
repositoryName (string) –
[REQUIRED]
The name of the repository where you want to merge two branches.
sourceCommitSpecifier (string) –
[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).
destinationCommitSpecifier (string) –
[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).
targetBranch (string) – The branch where the merge is applied.
- Return type:
dict
- Returns:
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