Create new branch without a commit?
未關閉
還沒有人認領這個 Issue。
- 主要語言
- Python
- 星號
- 1.7k
- 分支
- 408
- 平均合併
- 2 天 57 分鐘
- 30 天內合併 PR
- 7
描述
I read code here and found each create new branch required a commit.
def create(self, name, commit, force=False):
return self._repository.create_branch(name, commit, force)
How create new branch without commit?
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 pygit2/repository.py 第 1223 行附近以及 issue 中所示的 Repository.create_branch 呼叫開始。檢查 libgit2 底層的分支建立 API,以確定是否支援 unborn branch,以及 Python API 應該提供什麼行為;當預期行為已實作或有明確文件說明時,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- git, python
- 領域
- api
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100