microsoft / microsoft/VFSForGit
Remove pack input from PostFetchJob
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.1k
- Forks
- 474
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 8
Description
We could use the --reachable option in git commit-graph write instead of --stdin-packs. This would remove the need to communicate a list of pack-indexes when queueing the PostFetchStep.
This will make the commit-graph smaller, but will increase the lag from when users update their refs and when the commit-graph has parsed their commits. Background prefetch can do a lot to keep them up-to-date.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing PostFetchJob and PostFetchStep to see how pack-index lists are communicated when queueing the post-fetch work. Compare the existing git commit-graph write use of --stdin-packs with the proposed --reachable option; done means the pack input is no longer required while the documented commit-graph freshness and size tradeoff remains understood.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, git
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100