aboutsummaryrefslogtreecommitdiffstats
path: root/repo-settings.h
diff options
context:
space:
mode:
authorDerrick Stolee <stolee@gmail.com>2025-05-16 18:11:58 +0000
committerJunio C Hamano <gitster@pobox.com>2025-05-16 12:15:39 -0700
commit4f7f57120428c0dfcbda85bc8afcd4d1740139dd (patch)
treed1ea50b73982c07d9e2d57c1af97283d76c18031 /repo-settings.h
parentrepack: add --path-walk option (diff)
downloadgit-4f7f57120428c0dfcbda85bc8afcd4d1740139dd.tar.gz
git-4f7f57120428c0dfcbda85bc8afcd4d1740139dd.zip
pack-objects: enable --path-walk via config
Users may want to enable the --path-walk option for 'git pack-objects' by default, especially underneath commands like 'git push' or 'git repack'. This should be limited to client repositories, since the --path-walk option disables bitmap walks, so would be bad to include in Git servers when serving fetches and clones. There is potential that it may be helpful to consider when repacking the repository, to take advantage of improved deltas across historical versions of the same files. Much like how "pack.useSparse" was introduced and included in "feature.experimental" before being enabled by default, use the repository settings infrastructure to make the new "pack.usePathWalk" config enabled by "feature.experimental" and "feature.manyFiles". In order to test that this config works, add a new trace2 region around the path walk code that can be checked by a 'git push' command. Signed-off-by: Derrick Stolee <stolee@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'repo-settings.h')
-rw-r--r--repo-settings.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/repo-settings.h b/repo-settings.h
index ddc11967e0..a31decad22 100644
--- a/repo-settings.h
+++ b/repo-settings.h
@@ -56,6 +56,7 @@ struct repo_settings {
enum untracked_cache_setting core_untracked_cache;
int pack_use_sparse;
+ int pack_use_path_walk;
enum fetch_negotiation_setting fetch_negotiation_algorithm;
int core_multi_pack_index;