| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CodeCommit.GetMergeOptions
Description
Returns information about the merge options available for merging two specified branches. For details about why a merge option is not available, use GetMergeConflicts or DescribeMergeConflicts.
Synopsis
- data GetMergeOptions = GetMergeOptions' {}
- newGetMergeOptions :: Text -> Text -> Text -> GetMergeOptions
- getMergeOptions_conflictDetailLevel :: Lens' GetMergeOptions (Maybe ConflictDetailLevelTypeEnum)
- getMergeOptions_conflictResolutionStrategy :: Lens' GetMergeOptions (Maybe ConflictResolutionStrategyTypeEnum)
- getMergeOptions_repositoryName :: Lens' GetMergeOptions Text
- getMergeOptions_sourceCommitSpecifier :: Lens' GetMergeOptions Text
- getMergeOptions_destinationCommitSpecifier :: Lens' GetMergeOptions Text
- data GetMergeOptionsResponse = GetMergeOptionsResponse' {}
- newGetMergeOptionsResponse :: Int -> Text -> Text -> Text -> GetMergeOptionsResponse
- getMergeOptionsResponse_httpStatus :: Lens' GetMergeOptionsResponse Int
- getMergeOptionsResponse_mergeOptions :: Lens' GetMergeOptionsResponse [MergeOptionTypeEnum]
- getMergeOptionsResponse_sourceCommitId :: Lens' GetMergeOptionsResponse Text
- getMergeOptionsResponse_destinationCommitId :: Lens' GetMergeOptionsResponse Text
- getMergeOptionsResponse_baseCommitId :: Lens' GetMergeOptionsResponse Text
Creating a Request
data GetMergeOptions Source #
See: newGetMergeOptions smart constructor.
Constructors
| GetMergeOptions' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> GetMergeOptions |
Create a value of GetMergeOptions 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:conflictDetailLevel:GetMergeOptions', getMergeOptions_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:conflictResolutionStrategy:GetMergeOptions', getMergeOptions_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.
GetMergeOptions, getMergeOptions_repositoryName - The name of the repository that contains the commits about which you
want to get merge options.
$sel:sourceCommitSpecifier:GetMergeOptions', getMergeOptions_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:GetMergeOptions', getMergeOptions_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).
Request Lenses
getMergeOptions_conflictDetailLevel :: Lens' GetMergeOptions (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.
getMergeOptions_conflictResolutionStrategy :: Lens' GetMergeOptions (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.
getMergeOptions_repositoryName :: Lens' GetMergeOptions Text Source #
The name of the repository that contains the commits about which you want to get merge options.
getMergeOptions_sourceCommitSpecifier :: Lens' GetMergeOptions 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).
getMergeOptions_destinationCommitSpecifier :: Lens' GetMergeOptions 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).
Destructuring the Response
data GetMergeOptionsResponse Source #
See: newGetMergeOptionsResponse smart constructor.
Constructors
| GetMergeOptionsResponse' | |
Fields
| |
Instances
newGetMergeOptionsResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> Text | |
| -> Text | |
| -> GetMergeOptionsResponse |
Create a value of GetMergeOptionsResponse 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:httpStatus:GetMergeOptionsResponse', getMergeOptionsResponse_httpStatus - The response's http status code.
$sel:mergeOptions:GetMergeOptionsResponse', getMergeOptionsResponse_mergeOptions - The merge option or strategy used to merge the code.
GetMergeOptionsResponse, getMergeOptionsResponse_sourceCommitId - The commit ID of the source commit specifier that was used in the merge
evaluation.
GetMergeOptionsResponse, getMergeOptionsResponse_destinationCommitId - The commit ID of the destination commit specifier that was used in the
merge evaluation.
$sel:baseCommitId:GetMergeOptionsResponse', getMergeOptionsResponse_baseCommitId - The commit ID of the merge base.
Response Lenses
getMergeOptionsResponse_httpStatus :: Lens' GetMergeOptionsResponse Int Source #
The response's http status code.
getMergeOptionsResponse_mergeOptions :: Lens' GetMergeOptionsResponse [MergeOptionTypeEnum] Source #
The merge option or strategy used to merge the code.
getMergeOptionsResponse_sourceCommitId :: Lens' GetMergeOptionsResponse Text Source #
The commit ID of the source commit specifier that was used in the merge evaluation.
getMergeOptionsResponse_destinationCommitId :: Lens' GetMergeOptionsResponse Text Source #
The commit ID of the destination commit specifier that was used in the merge evaluation.
getMergeOptionsResponse_baseCommitId :: Lens' GetMergeOptionsResponse Text Source #
The commit ID of the merge base.