branch: Git Branch Utilities

branchR Documentation

Git Branch Utilities

Description

Git Branch Utilities

Usage

git_default_br()

git_current_br()

git_local_br()

Value

character(1). The name of the respective branch if found, otherwise NULL.

Functions

  • git_default_br(): gets the default "main" branch, typically either master, main, or trunk.

  • git_current_br(): gets the current branch.

  • git_local_br(): gets all the local branches.


gitr documentation built on April 13, 2025, 1:08 a.m.