Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates an unreferenced commit that represents the result of merging two branches using a specified merge strategy. This can help you determine the outcome of a potential merge. This API cannot be used with the fast-forward merge strategy because that strategy does not create a merge commit.
This unreferenced merge commit can only be accessed using the GetCommit API or through git commands such as git fetch. To retrieve this commit, you must specify its commit ID or otherwise reference it.
Synopsis
- data CreateUnreferencedMergeCommit = CreateUnreferencedMergeCommit' {
- email :: Maybe Text
- authorName :: Maybe Text
- conflictDetailLevel :: Maybe ConflictDetailLevelTypeEnum
- commitMessage :: Maybe Text
- conflictResolution :: Maybe ConflictResolution
- conflictResolutionStrategy :: Maybe ConflictResolutionStrategyTypeEnum
- keepEmptyFolders :: Maybe Bool
- repositoryName :: Text
- sourceCommitSpecifier :: Text
- destinationCommitSpecifier :: Text
- mergeOption :: MergeOptionTypeEnum
- newCreateUnreferencedMergeCommit :: Text -> Text -> Text -> MergeOptionTypeEnum -> CreateUnreferencedMergeCommit
- createUnreferencedMergeCommit_email :: Lens' CreateUnreferencedMergeCommit (Maybe Text)
- createUnreferencedMergeCommit_authorName :: Lens' CreateUnreferencedMergeCommit (Maybe Text)
- createUnreferencedMergeCommit_conflictDetailLevel :: Lens' CreateUnreferencedMergeCommit (Maybe ConflictDetailLevelTypeEnum)
- createUnreferencedMergeCommit_commitMessage :: Lens' CreateUnreferencedMergeCommit (Maybe Text)
- createUnreferencedMergeCommit_conflictResolution :: Lens' CreateUnreferencedMergeCommit (Maybe ConflictResolution)
- createUnreferencedMergeCommit_conflictResolutionStrategy :: Lens' CreateUnreferencedMergeCommit (Maybe ConflictResolutionStrategyTypeEnum)
- createUnreferencedMergeCommit_keepEmptyFolders :: Lens' CreateUnreferencedMergeCommit (Maybe Bool)
- createUnreferencedMergeCommit_repositoryName :: Lens' CreateUnreferencedMergeCommit Text
- createUnreferencedMergeCommit_sourceCommitSpecifier :: Lens' CreateUnreferencedMergeCommit Text
- createUnreferencedMergeCommit_destinationCommitSpecifier :: Lens' CreateUnreferencedMergeCommit Text
- createUnreferencedMergeCommit_mergeOption :: Lens' CreateUnreferencedMergeCommit MergeOptionTypeEnum
- data CreateUnreferencedMergeCommitResponse = CreateUnreferencedMergeCommitResponse' {}
- newCreateUnreferencedMergeCommitResponse :: Int -> CreateUnreferencedMergeCommitResponse
- createUnreferencedMergeCommitResponse_commitId :: Lens' CreateUnreferencedMergeCommitResponse (Maybe Text)
- createUnreferencedMergeCommitResponse_treeId :: Lens' CreateUnreferencedMergeCommitResponse (Maybe Text)
- createUnreferencedMergeCommitResponse_httpStatus :: Lens' CreateUnreferencedMergeCommitResponse Int
Creating a Request
data CreateUnreferencedMergeCommit Source #
See: newCreateUnreferencedMergeCommit
smart constructor.
CreateUnreferencedMergeCommit' | |
|
Instances
newCreateUnreferencedMergeCommit Source #
:: Text | |
-> Text | |
-> Text |
|
-> MergeOptionTypeEnum | |
-> CreateUnreferencedMergeCommit |
Create a value of CreateUnreferencedMergeCommit
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:email:CreateUnreferencedMergeCommit'
, createUnreferencedMergeCommit_email
- The email address for the person who created the unreferenced commit.
$sel:authorName:CreateUnreferencedMergeCommit'
, createUnreferencedMergeCommit_authorName
- The name of the author who created the unreferenced commit. This
information is used as both the author and committer for the commit.
$sel:conflictDetailLevel:CreateUnreferencedMergeCommit'
, createUnreferencedMergeCommit_conflictDetailLevel
- The level of conflict detail to use. If unspecified, the default
FILE_LEVEL is used, which returns a not-mergeable result if the same
file has differences in both branches. If LINE_LEVEL is specified, a
conflict is considered not mergeable if the same file in both branches
has differences on the same line.
$sel:commitMessage:CreateUnreferencedMergeCommit'
, createUnreferencedMergeCommit_commitMessage
- The commit message for the unreferenced commit.
$sel:conflictResolution:CreateUnreferencedMergeCommit'
, createUnreferencedMergeCommit_conflictResolution
- If AUTOMERGE is the conflict resolution strategy, a list of inputs to
use when resolving conflicts during a merge.
$sel:conflictResolutionStrategy:CreateUnreferencedMergeCommit'
, createUnreferencedMergeCommit_conflictResolutionStrategy
- Specifies which branch to use when resolving conflicts, or whether to
attempt automatically merging two versions of a file. The default is
NONE, which requires any conflicts to be resolved manually before the
merge operation is successful.
$sel:keepEmptyFolders:CreateUnreferencedMergeCommit'
, createUnreferencedMergeCommit_keepEmptyFolders
- If the commit contains deletions, whether to keep a folder or folder
structure if the changes leave the folders empty. If this is specified
as true, a .gitkeep file is created for empty folders. The default is
false.
$sel:repositoryName:CreateUnreferencedMergeCommit'
, createUnreferencedMergeCommit_repositoryName
- The name of the repository where you want to create the unreferenced
merge commit.
$sel:sourceCommitSpecifier:CreateUnreferencedMergeCommit'
, createUnreferencedMergeCommit_sourceCommitSpecifier
- The branch, tag, HEAD, or other fully qualified reference used to
identify a commit (for example, a branch name or a full commit ID).
$sel:destinationCommitSpecifier:CreateUnreferencedMergeCommit'
, createUnreferencedMergeCommit_destinationCommitSpecifier
- The branch, tag, HEAD, or other fully qualified reference used to
identify a commit (for example, a branch name or a full commit ID).
$sel:mergeOption:CreateUnreferencedMergeCommit'
, createUnreferencedMergeCommit_mergeOption
- The merge option or strategy you want to use to merge the code.
Request Lenses
createUnreferencedMergeCommit_email :: Lens' CreateUnreferencedMergeCommit (Maybe Text) Source #
The email address for the person who created the unreferenced commit.
createUnreferencedMergeCommit_authorName :: Lens' CreateUnreferencedMergeCommit (Maybe Text) Source #
The name of the author who created the unreferenced commit. This information is used as both the author and committer for the commit.
createUnreferencedMergeCommit_conflictDetailLevel :: Lens' CreateUnreferencedMergeCommit (Maybe ConflictDetailLevelTypeEnum) Source #
The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.
createUnreferencedMergeCommit_commitMessage :: Lens' CreateUnreferencedMergeCommit (Maybe Text) Source #
The commit message for the unreferenced commit.
createUnreferencedMergeCommit_conflictResolution :: Lens' CreateUnreferencedMergeCommit (Maybe ConflictResolution) Source #
If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a merge.
createUnreferencedMergeCommit_conflictResolutionStrategy :: Lens' CreateUnreferencedMergeCommit (Maybe ConflictResolutionStrategyTypeEnum) Source #
Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.
createUnreferencedMergeCommit_keepEmptyFolders :: Lens' CreateUnreferencedMergeCommit (Maybe Bool) Source #
If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If this is specified as true, a .gitkeep file is created for empty folders. The default is false.
createUnreferencedMergeCommit_repositoryName :: Lens' CreateUnreferencedMergeCommit Text Source #
The name of the repository where you want to create the unreferenced merge commit.
createUnreferencedMergeCommit_sourceCommitSpecifier :: Lens' CreateUnreferencedMergeCommit Text Source #
The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
createUnreferencedMergeCommit_destinationCommitSpecifier :: Lens' CreateUnreferencedMergeCommit Text Source #
The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
createUnreferencedMergeCommit_mergeOption :: Lens' CreateUnreferencedMergeCommit MergeOptionTypeEnum Source #
The merge option or strategy you want to use to merge the code.
Destructuring the Response
data CreateUnreferencedMergeCommitResponse Source #
See: newCreateUnreferencedMergeCommitResponse
smart constructor.
Instances
newCreateUnreferencedMergeCommitResponse Source #
Create a value of CreateUnreferencedMergeCommitResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:commitId:CreateUnreferencedMergeCommitResponse'
, createUnreferencedMergeCommitResponse_commitId
- The full commit ID of the commit that contains your merge results.
$sel:treeId:CreateUnreferencedMergeCommitResponse'
, createUnreferencedMergeCommitResponse_treeId
- The full SHA-1 pointer of the tree information for the commit that
contains the merge results.
$sel:httpStatus:CreateUnreferencedMergeCommitResponse'
, createUnreferencedMergeCommitResponse_httpStatus
- The response's http status code.
Response Lenses
createUnreferencedMergeCommitResponse_commitId :: Lens' CreateUnreferencedMergeCommitResponse (Maybe Text) Source #
The full commit ID of the commit that contains your merge results.
createUnreferencedMergeCommitResponse_treeId :: Lens' CreateUnreferencedMergeCommitResponse (Maybe Text) Source #
The full SHA-1 pointer of the tree information for the commit that contains the merge results.
createUnreferencedMergeCommitResponse_httpStatus :: Lens' CreateUnreferencedMergeCommitResponse Int Source #
The response's http status code.