Skip to content

/AWS1/CL_CMTCOMMIT

Returns information about a specific commit.

CONSTRUCTOR

IMPORTING

Optional arguments:

IV_COMMITID TYPE /AWS1/CMTOBJECTID /AWS1/CMTOBJECTID

The full SHA ID of the specified commit.

IV_TREEID TYPE /AWS1/CMTOBJECTID /AWS1/CMTOBJECTID

Tree information for the specified commit.

IT_PARENTS TYPE /AWS1/CL_CMTPARENTLIST_W=>TT_PARENTLIST TT_PARENTLIST

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

IV_MESSAGE TYPE /AWS1/CMTMESSAGE /AWS1/CMTMESSAGE

The commit message associated with the specified commit.

IO_AUTHOR TYPE REF TO /AWS1/CL_CMTUSERINFO /AWS1/CL_CMTUSERINFO

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.

IO_COMMITTER TYPE REF TO /AWS1/CL_CMTUSERINFO /AWS1/CL_CMTUSERINFO

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.

IV_ADDITIONALDATA TYPE /AWS1/CMTADDITIONALDATA /AWS1/CMTADDITIONALDATA

Any other data associated with the specified commit.


Queryable Attributes

commitId

The full SHA ID of the specified commit.

Accessible with the following methods

Method Description
GET_COMMITID() Getter for COMMITID, with configurable default
ASK_COMMITID() Getter for COMMITID w/ exceptions if field has no value
HAS_COMMITID() Determine if COMMITID has a value

treeId

Tree information for the specified commit.

Accessible with the following methods

Method Description
GET_TREEID() Getter for TREEID, with configurable default
ASK_TREEID() Getter for TREEID w/ exceptions if field has no value
HAS_TREEID() Determine if TREEID has a value

parents

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

Accessible with the following methods

Method Description
GET_PARENTS() Getter for PARENTS, with configurable default
ASK_PARENTS() Getter for PARENTS w/ exceptions if field has no value
HAS_PARENTS() Determine if PARENTS has a value

message

The commit message associated with the specified commit.

Accessible with the following methods

Method Description
GET_MESSAGE() Getter for MESSAGE, with configurable default
ASK_MESSAGE() Getter for MESSAGE w/ exceptions if field has no value
HAS_MESSAGE() Determine if MESSAGE has a value

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.

Accessible with the following methods

Method Description
GET_AUTHOR() Getter for AUTHOR

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.

Accessible with the following methods

Method Description
GET_COMMITTER() Getter for COMMITTER

additionalData

Any other data associated with the specified commit.

Accessible with the following methods

Method Description
GET_ADDITIONALDATA() Getter for ADDITIONALDATA, with configurable default
ASK_ADDITIONALDATA() Getter for ADDITIONALDATA w/ exceptions if field has no valu
HAS_ADDITIONALDATA() Determine if ADDITIONALDATA has a value

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TT_COMMITOBJECTSLIST

TYPES TT_COMMITOBJECTSLIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_CMTCOMMIT WITH DEFAULT KEY
.