merge_branches_by_fast_forward

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.RepositoryNameRequiredException
  • CodeCommit.Client.exceptions.InvalidRepositoryNameException
  • CodeCommit.Client.exceptions.RepositoryDoesNotExistException
  • CodeCommit.Client.exceptions.TipsDivergenceExceededException
  • CodeCommit.Client.exceptions.CommitRequiredException
  • CodeCommit.Client.exceptions.InvalidCommitException
  • CodeCommit.Client.exceptions.CommitDoesNotExistException
  • CodeCommit.Client.exceptions.InvalidTargetBranchException
  • CodeCommit.Client.exceptions.InvalidBranchNameException
  • CodeCommit.Client.exceptions.BranchNameRequiredException
  • CodeCommit.Client.exceptions.BranchNameIsTagNameException
  • CodeCommit.Client.exceptions.BranchDoesNotExistException
  • CodeCommit.Client.exceptions.ManualMergeRequiredException
  • CodeCommit.Client.exceptions.ConcurrentReferenceUpdateException
  • CodeCommit.Client.exceptions.EncryptionIntegrityChecksFailedException
  • CodeCommit.Client.exceptions.EncryptionKeyAccessDeniedException
  • CodeCommit.Client.exceptions.EncryptionKeyDisabledException
  • CodeCommit.Client.exceptions.EncryptionKeyNotFoundException
  • CodeCommit.Client.exceptions.EncryptionKeyUnavailableException