libZSservicesZSamazonka-codecommitZSamazonka-codecommit
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CodeCommit.Types.MergeHunk

Description

 
Synopsis

Documentation

data MergeHunk Source #

Information about merge hunks in a merge or pull request operation.

See: newMergeHunk smart constructor.

Constructors

MergeHunk' 

Fields

  • destination :: Maybe MergeHunkDetail

    Information about the merge hunk in the destination of a merge or pull request.

  • base :: Maybe MergeHunkDetail

    Information about the merge hunk in the base of a merge or pull request.

  • isConflict :: Maybe Bool

    A Boolean value indicating whether a combination of hunks contains a conflict. Conflicts occur when the same file or the same lines in a file were modified in both the source and destination of a merge or pull request. Valid values include true, false, and null. True when the hunk represents a conflict and one or more files contains a line conflict. File mode conflicts in a merge do not set this to true.

  • source :: Maybe MergeHunkDetail

    Information about the merge hunk in the source of a merge or pull request.

Instances

Instances details
Eq MergeHunk Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.MergeHunk

Read MergeHunk Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.MergeHunk

Show MergeHunk Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.MergeHunk

Generic MergeHunk Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.MergeHunk

Associated Types

type Rep MergeHunk :: Type -> Type #

NFData MergeHunk Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.MergeHunk

Methods

rnf :: MergeHunk -> () #

Hashable MergeHunk Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.MergeHunk

FromJSON MergeHunk Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.MergeHunk

type Rep MergeHunk Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.MergeHunk

type Rep MergeHunk = D1 ('MetaData "MergeHunk" "Amazonka.CodeCommit.Types.MergeHunk" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "MergeHunk'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "destination") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MergeHunkDetail)) :*: S1 ('MetaSel ('Just "base") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MergeHunkDetail))) :*: (S1 ('MetaSel ('Just "isConflict") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MergeHunkDetail)))))

newMergeHunk :: MergeHunk Source #

Create a value of MergeHunk 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:destination:MergeHunk', mergeHunk_destination - Information about the merge hunk in the destination of a merge or pull request.

$sel:base:MergeHunk', mergeHunk_base - Information about the merge hunk in the base of a merge or pull request.

$sel:isConflict:MergeHunk', mergeHunk_isConflict - A Boolean value indicating whether a combination of hunks contains a conflict. Conflicts occur when the same file or the same lines in a file were modified in both the source and destination of a merge or pull request. Valid values include true, false, and null. True when the hunk represents a conflict and one or more files contains a line conflict. File mode conflicts in a merge do not set this to true.

$sel:source:MergeHunk', mergeHunk_source - Information about the merge hunk in the source of a merge or pull request.

mergeHunk_destination :: Lens' MergeHunk (Maybe MergeHunkDetail) Source #

Information about the merge hunk in the destination of a merge or pull request.

mergeHunk_base :: Lens' MergeHunk (Maybe MergeHunkDetail) Source #

Information about the merge hunk in the base of a merge or pull request.

mergeHunk_isConflict :: Lens' MergeHunk (Maybe Bool) Source #

A Boolean value indicating whether a combination of hunks contains a conflict. Conflicts occur when the same file or the same lines in a file were modified in both the source and destination of a merge or pull request. Valid values include true, false, and null. True when the hunk represents a conflict and one or more files contains a line conflict. File mode conflicts in a merge do not set this to true.

mergeHunk_source :: Lens' MergeHunk (Maybe MergeHunkDetail) Source #

Information about the merge hunk in the source of a merge or pull request.