-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
checkoutbranch forcebranch option not implemented #105
Comments
Looks like it would help a little, but not make a huge difference:
(there's only 2 in t2018 and a bunch inf t2024, but t2024 says it's tests for "checking out unborn branches" which isn't really a huge priority..) |
It seems that the -B (force branch) option was already working. I have a PR open to add in some checkout branch tests: #193 |
Unless there is any objection I'm going to close this one as done. |
Seems like it's working to me too:
|
In git.CheckoutBranch, the branch option (-b) is implemented but forcebranch (-B) isn't.
Implementing it should just be a matter of checking if the refspec exists before creating the branch, and erroring out if ForceBranch isn't set, but calling UpdateRef if it is.
The text was updated successfully, but these errors were encountered: