libgit2 / libgit2/libgit2sharp

Ease the creation of unborn branches

Open
#982 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.