r-lib / gert

Simple git client for R
https://docs.ropensci.org/gert/
Other
146 stars 31 forks source link

Expose `git_branch_move()` #151

Closed jennybc closed 3 years ago

jennybc commented 3 years ago

I'm working on support in usethis for changing the default branch's name (locally and on GitHub) and (for a repo managed by someone else) detecting when the default branch has been renamed and adapting to that.

I really need git_branch_move(). Can that be exposed?

https://libgit2.org/libgit2/#HEAD/group/branch/git_branch_move

jeroen commented 3 years ago

OK it has been added.

jennybc commented 3 years ago

Thanks! Seems to be working as advertised.

jeroen commented 3 years ago

OK thanks for confirming