libgit2 / libgit2/libgit2sharp
Ease the creation of unborn branches
Open
Nobody has claimed this yet.
Easy fix
Up for grabs
- Dominant language
- C#
- Stars
- 3.5k
- Forks
- 925
- PR merge metrics
- No merged PRs in 30d
Description
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");
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the Refs.UpdateTarget overload and the repo.Refs.Head reference handling. The issue names no files or tests; done means the overload accepts Head for an unborn branch and supports the shown refs/heads/unborn target without requiring an existing GitObject.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, git
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100