libgit2 / libgit2/libgit2sharp
Ease the creation of unborn branches
未關閉
還沒有人認領這個 Issue。
Easy fix
Up for grabs
- 主要語言
- C#
- 星號
- 3.5k
- 分支
- 925
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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");
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先追蹤 Refs.UpdateTarget 多載以及 repo.Refs.Head 參照的處理。該 issue 未指定檔案或測試;完成標準是該多載接受用於 unborn 分支的 Head,並支援所示的 refs/heads/unborn 目標,而不需要現有的 GitObject。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp, git
- 領域
- devtools
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100