git_branch: Get the current git branch from path.

View source: R/git.R

git_branchR Documentation

Get the current git branch from path.

Description

From a path to a git controlled dir get the current active branch. This throws an error if branch can't be retrieved.

Usage

git_branch(path)

Arguments

path

Path to the directory to get the branch for.

Value

The git branch or error if can't be found.


vimc/dettl documentation built on Oct. 6, 2022, 2:13 p.m.