Skip to content

/AWS1/CL_CMT=>LISTFILECOMMITHISTORY()

About ListFileCommitHistory

Retrieves a list of commits and changes to a specified file.

Method Signature

IMPORTING

Required arguments:

IV_REPOSITORYNAME TYPE /AWS1/CMTREPOSITORYNAME /AWS1/CMTREPOSITORYNAME

The name of the repository that contains the file.

IV_FILEPATH TYPE /AWS1/CMTPATH /AWS1/CMTPATH

The full path of the file whose history you want to retrieve, including the name of the file.

Optional arguments:

IV_COMMITSPECIFIER TYPE /AWS1/CMTCOMMITNAME /AWS1/CMTCOMMITNAME

The fully quaified reference that identifies the commit that contains the file. For example, you can specify a full commit ID, a tag, a branch name, or a reference such as refs/heads/main. If none is provided, the head commit is used.

IV_MAXRESULTS TYPE /AWS1/CMTLIMIT /AWS1/CMTLIMIT

A non-zero, non-negative integer used to limit the number of returned results.

IV_NEXTTOKEN TYPE /AWS1/CMTNEXTTOKEN /AWS1/CMTNEXTTOKEN

An enumeration token that allows the operation to batch the results.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_CMTLSTFILECOMMITHIS01 /AWS1/CL_CMTLSTFILECOMMITHIS01