Skip to content

Commit 8932eda

Browse files
authored
feat: add git_branch_switch() as an alias to git_branch_checkout() (#254)
1 parent 28632ef commit 8932eda

4 files changed

Lines changed: 9 additions & 1 deletion

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ VignetteBuilder:
3131
knitr
3232
Encoding: UTF-8
3333
Roxygen: list(markdown = TRUE)
34-
RoxygenNote: 7.3.3
34+
RoxygenNote: 7.3.3.9000
3535
SystemRequirements: libgit2 (>= 1.0): libgit2-devel (rpm) or libgit2-dev (deb)
3636
Language: en-US

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export(git_branch_fast_forward)
1414
export(git_branch_list)
1515
export(git_branch_move)
1616
export(git_branch_set_upstream)
17+
export(git_branch_switch)
1718
export(git_checkout_pull_request)
1819
export(git_cherry_pick)
1920
export(git_clone)

R/branch.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ git_branch_checkout <- function(
6161
.Call(R_git_checkout_branch, repo, branch, force)
6262
}
6363

64+
#' @rdname git_branch
65+
#' @export
66+
git_branch_switch <- git_branch_checkout
67+
6468
#' @export
6569
#' @rdname git_branch
6670
#' @useDynLib gert R_git_create_branch

man/git_branch.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)