Skip to content
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

Ease the creation of unborn branches #982

Open
nulltoken opened this issue Feb 26, 2015 · 0 comments
Open

Ease the creation of unborn branches #982

nulltoken opened this issue Feb 26, 2015 · 0 comments

Comments

@nulltoken
Copy link
Member

Currently, the way to do this is the following

repo.Refs.UpdateTarget("HEAD", "refs/heads/unborn");

However, the following overload cringes as the passed in reference canonical name doesn't point to an existing GitObject. Let's loosen this behavior so that it deals with Head in a specific way.

repo.Refs.UpdateTarget(repo.Refs.Head, "refs/heads/unborn");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant