libgit2 / libgit2/libgit2sharp
Index in a Bare repository
还没有人认领这个 Issue。
- 主要语言
- C#
- 星标
- 3.5k
- 派生
- 925
- PR 合并指标
- 30 天内没有已合并 PR
描述
So currently Index only exists when its not a bare repository. (https://github.com/libgit2/libgit2sharp/blob/master/LibGit2Sharp/Repository.cs#L284)
I'm wondering if its possible to have a Index backend. Just like how ObjectDatabase and Refs can have a backend. It looks like libgit2 supports an in memory Index get_index_new so I'm thinking it could work.
My thought is that I could load my Index data from somewhere else and put it into the in memory index? Does this sound crazy?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 Repository.cs 第 284 行附近开始,比较 ObjectDatabase 和 Refs 如何提供后端。阅读 libgit2 的 get_index_new 文档,以确定内存中的 Index 是否支持 bare 仓库和从外部加载的数据。完成后应形成一个清晰的 Index 后端设计和实现路径,并包含覆盖 bare 仓库情况的测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp, git
- 领域
- backend
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 30/100