Skip to contents

Determine the active branch of a git repository

Usage

GetActiveBranch(strPkgRoot = ".")

Arguments

strPkgRoot

(length-1 character) The path to the root directory of the package. Will be expanded using pkgload::pkg_path().

Value

A length-1 character vector representing the active branch name.