libgit2 / libgit2/libgit2sharp
Fetch on Bare are Not Only Changes
还没有人认领这个 Issue。
- 主要语言
- C#
- 星标
- 3.5k
- 派生
- 925
- PR 合并指标
- 30 天内没有已合并 PR
描述
Recently, I discovered that when I fetch a bare local repo, I often fetch a large number of git objects from remote to local (if there has some changed). However, most of the fetched objects already exist on the local side (not only changes).
This will cause my bare repo size to increase The bigger it is, the more time will be wasted waiting for network transmission
Expected behavior
Fetch only changes objects.

Actual behavior
Fetch a lot of object even it's already exists on the local repo.

0.26.2
Operating system(s) tested;
Windows11, NetFrameWork 4.7.2
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
该 issue 没有指定源文件、测试或入口点。在 Windows 11 上使用 .NET Framework 4.7.2 和版本 0.26.2,复现一次从本地 bare 仓库进行的 fetch,并将传输的对象与已经存在的对象进行比较;仅获取缺失的对象时即完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp, git
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100