Skip to content

List File Commit History

codecommit_list_file_commit_history R Documentation

Retrieves a list of commits and changes to a specified file

Description

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

Usage

codecommit_list_file_commit_history(repositoryName, commitSpecifier,
  filePath, maxResults, nextToken)

Arguments

repositoryName

[required] The name of the repository that contains the file.

commitSpecifier

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.

filePath

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

maxResults

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

nextToken

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

Value

A list with the following syntax:

list(
  revisionDag = list(
    list(
      commit = list(
        commitId = "string",
        treeId = "string",
        parents = list(
          "string"
        ),
        message = "string",
        author = list(
          name = "string",
          email = "string",
          date = "string"
        ),
        committer = list(
          name = "string",
          email = "string",
          date = "string"
        ),
        additionalData = "string"
      ),
      blobId = "string",
      path = "string",
      revisionChildren = list(
        "string"
      )
    )
  ),
  nextToken = "string"
)

Request syntax

svc$list_file_commit_history(
  repositoryName = "string",
  commitSpecifier = "string",
  filePath = "string",
  maxResults = 123,
  nextToken = "string"
)