Skip to content

Get Branch

codecommit_get_branch R Documentation

Returns information about a repository branch, including its name and the last commit ID

Description

Returns information about a repository branch, including its name and the last commit ID.

Usage

codecommit_get_branch(repositoryName, branchName)

Arguments

repositoryName

The name of the repository that contains the branch for which you want to retrieve information.

branchName

The name of the branch for which you want to retrieve information.

Value

A list with the following syntax:

list(
  branch = list(
    branchName = "string",
    commitId = "string"
  )
)

Request syntax

svc$get_branch(
  repositoryName = "string",
  branchName = "string"
)