git_abbrev_ref: Abbreviated name for HEAD commit in git repository

Description Usage Arguments Value

View source: R/git.R

Description

Uses git rev-parse –abbrev-ref to get the branch name when appropriate

Usage

1
git_abbrev_ref(dir = getwd(), base_only = TRUE)

Arguments

dir

A directory

base_only

Logical, should only the first part of a foo/bar branch name be returned

Value

A character with the abbrev-ref


rjbgoudie/mngr documentation built on May 27, 2019, 9:13 a.m.