microsoft / microsoft/VFSForGit

Remove pack input from PostFetchJob

Open
#1,551 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.