forked from git/git
-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
maintenance: prefetch config for remotes/refs
Large repositories often contain numerous branches and refs, many of which individual users may not need. This commit introduces a new configuration option (`maintenance.prefetch.<remote>.refs`) to allow users to specify which remotes and refs should be prefetched during the maintenance task. Key behaviors: 1. If no configuration is set, all remotes and refs are prefetched (preserving the current behavior). 2. If any configuration is set, only the specified remotes and refs are prefetched. 3. Remotes without configuration are skipped if any configuration exists. This change allows users to optimize their prefetch operations, potentially reducing network traffic and disk usage, especially for large repositories with many branches. Signed-off-by: Shubham Kanodia <shubham.kanodia10@gmail.com>
- Loading branch information
Showing
3 changed files
with
167 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters