amazonka-codecommit-2.0: Amazon CodeCommit SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CodeCommit.Types.Commit

Description

 
Synopsis

Documentation

data Commit Source #

Returns information about a specific commit.

See: newCommit smart constructor.

Constructors

Commit' 

Fields

  • additionalData :: Maybe Text

    Any other data associated with the specified commit.

  • author :: Maybe UserInfo

    Information about the author of the specified commit. Information includes the date in timestamp format with GMT offset, the name of the author, and the email address for the author, as configured in Git.

  • commitId :: Maybe Text

    The full SHA ID of the specified commit.

  • committer :: Maybe UserInfo

    Information about the person who committed the specified commit, also known as the committer. Information includes the date in timestamp format with GMT offset, the name of the committer, and the email address for the committer, as configured in Git.

    For more information about the difference between an author and a committer in Git, see Viewing the Commit History in Pro Git by Scott Chacon and Ben Straub.

  • message :: Maybe Text

    The commit message associated with the specified commit.

  • parents :: Maybe [Text]

    A list of parent commits for the specified commit. Each parent commit ID is the full commit ID.

  • treeId :: Maybe Text

    Tree information for the specified commit.

Instances

Instances details
FromJSON Commit Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Commit

Generic Commit Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Commit

Associated Types

type Rep Commit :: Type -> Type #

Methods

from :: Commit -> Rep Commit x #

to :: Rep Commit x -> Commit #

Read Commit Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Commit

Show Commit Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Commit

NFData Commit Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Commit

Methods

rnf :: Commit -> () #

Eq Commit Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Commit

Methods

(==) :: Commit -> Commit -> Bool #

(/=) :: Commit -> Commit -> Bool #

Hashable Commit Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Commit

Methods

hashWithSalt :: Int -> Commit -> Int #

hash :: Commit -> Int #

type Rep Commit Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Commit

newCommit :: Commit Source #

Create a value of Commit 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:additionalData:Commit', commit_additionalData - Any other data associated with the specified commit.

$sel:author:Commit', commit_author - Information about the author of the specified commit. Information includes the date in timestamp format with GMT offset, the name of the author, and the email address for the author, as configured in Git.

$sel:commitId:Commit', commit_commitId - The full SHA ID of the specified commit.

$sel:committer:Commit', commit_committer - Information about the person who committed the specified commit, also known as the committer. Information includes the date in timestamp format with GMT offset, the name of the committer, and the email address for the committer, as configured in Git.

For more information about the difference between an author and a committer in Git, see Viewing the Commit History in Pro Git by Scott Chacon and Ben Straub.

$sel:message:Commit', commit_message - The commit message associated with the specified commit.

$sel:parents:Commit', commit_parents - A list of parent commits for the specified commit. Each parent commit ID is the full commit ID.

$sel:treeId:Commit', commit_treeId - Tree information for the specified commit.

commit_additionalData :: Lens' Commit (Maybe Text) Source #

Any other data associated with the specified commit.

commit_author :: Lens' Commit (Maybe UserInfo) Source #

Information about the author of the specified commit. Information includes the date in timestamp format with GMT offset, the name of the author, and the email address for the author, as configured in Git.

commit_commitId :: Lens' Commit (Maybe Text) Source #

The full SHA ID of the specified commit.

commit_committer :: Lens' Commit (Maybe UserInfo) Source #

Information about the person who committed the specified commit, also known as the committer. Information includes the date in timestamp format with GMT offset, the name of the committer, and the email address for the committer, as configured in Git.

For more information about the difference between an author and a committer in Git, see Viewing the Commit History in Pro Git by Scott Chacon and Ben Straub.

commit_message :: Lens' Commit (Maybe Text) Source #

The commit message associated with the specified commit.

commit_parents :: Lens' Commit (Maybe [Text]) Source #

A list of parent commits for the specified commit. Each parent commit ID is the full commit ID.

commit_treeId :: Lens' Commit (Maybe Text) Source #

Tree information for the specified commit.