-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Support shallow fetch through net.git-fetch-with-cli #14956
Copy link
Copy link
Closed
Labels
A-gitArea: anything dealing with gitArea: anything dealing with gitC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or review
Metadata
Metadata
Assignees
Labels
A-gitArea: anything dealing with gitArea: anything dealing with gitC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or review
Type
Fields
Give feedbackNo fields configured for issues without a type.
Problem
#13285 tracks the ability of fetching registry index and git dependencies in “shallow fetch” mode. We have both libgit2 and gitoxide backend supporting this. Our third git backend, the famous "git" CLI, hasn't yet supported the feature.
During the discussion of stabilizing shallow fetch on Zulip, we would like to see
net.git-fetch-with-clihave this feature as well, for a better consistency among each git backend.Proposed Solution
The function drives git CLI is
fetch_with_cli. Need togitto replicate whatfetch_with_gitoxideandfetch_with_libgit2have done for shallow fetches.Currently they should be under
~/.cargo/git/{db,checkout}/*-shallow, and~/.cargo/registry/index/*-shallowNotes
No response