Skip to content

Commit 0257d18

Browse files
committed
fixup! pack-objects: enable --path-walk via config
Signed-off-by: Derrick Stolee <[email protected]>
1 parent f561554 commit 0257d18

File tree

5 files changed

+0
-19
lines changed

5 files changed

+0
-19
lines changed

Documentation/config/feature.adoc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ walking fewer objects.
2020
+
2121
* `pack.allowPackReuse=multi` may improve the time it takes to create a pack by
2222
reusing objects from multiple packs instead of just one.
23-
+
24-
* `pack.usePathWalk` may speed up packfile creation and make the packfiles be
25-
significantly smaller in the presence of certain filename collisions with Git's
26-
default name-hash.
2723
2824
feature.manyFiles::
2925
Enable config options that optimize for repos with many files in the

Documentation/config/pack.adoc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,6 @@ pack.useSparse::
155155
commits contain certain types of direct renames. Default is
156156
`true`.
157157

158-
pack.usePathWalk::
159-
When true, git will default to using the '--path-walk' option in
160-
'git pack-objects' when the '--revs' option is present. This
161-
algorithm groups objects by path to maximize the ability to
162-
compute delta chains across historical versions of the same
163-
object. This may disable other options, such as using bitmaps to
164-
enumerate objects.
165-
166158
pack.preferBitmapTips::
167159
When selecting which commits will receive bitmaps, prefer a
168160
commit at the tip of any reference that is a suffix of any value

builtin/pack-objects.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4732,9 +4732,6 @@ int cmd_pack_objects(int argc,
47324732
if (use_bitmap_index > 0 ||
47334733
!use_internal_rev_list)
47344734
path_walk = 0;
4735-
else if (the_repository->gitdir &&
4736-
the_repository->settings.pack_use_path_walk)
4737-
path_walk = 1;
47384735
else
47394736
path_walk = git_env_bool("GIT_TEST_PACK_PATH_WALK", 0);
47404737
}

repo-settings.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,11 @@ void prepare_repo_settings(struct repository *r)
5454
r->settings.fetch_negotiation_algorithm = FETCH_NEGOTIATION_SKIPPING;
5555
r->settings.pack_use_bitmap_boundary_traversal = 1;
5656
r->settings.pack_use_multi_pack_reuse = 1;
57-
r->settings.pack_use_path_walk = 1;
5857
}
5958
if (manyfiles) {
6059
r->settings.index_version = 4;
6160
r->settings.index_skip_hash = 1;
6261
r->settings.core_untracked_cache = UNTRACKED_CACHE_WRITE;
63-
r->settings.pack_use_path_walk = 1;
6462
}
6563

6664
/* Commit graph config or default, does not cascade (simple) */
@@ -75,7 +73,6 @@ void prepare_repo_settings(struct repository *r)
7573

7674
/* Boolean config or default, does not cascade (simple) */
7775
repo_cfg_bool(r, "pack.usesparse", &r->settings.pack_use_sparse, 1);
78-
repo_cfg_bool(r, "pack.usepathwalk", &r->settings.pack_use_path_walk, 0);
7976
repo_cfg_bool(r, "core.multipackindex", &r->settings.core_multi_pack_index, 1);
8077
repo_cfg_bool(r, "index.sparse", &r->settings.sparse_index, 0);
8178
repo_cfg_bool(r, "index.skiphash", &r->settings.index_skip_hash, r->settings.index_skip_hash);

repo-settings.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ struct repo_settings {
5656
enum untracked_cache_setting core_untracked_cache;
5757

5858
int pack_use_sparse;
59-
int pack_use_path_walk;
6059
enum fetch_negotiation_setting fetch_negotiation_algorithm;
6160

6261
int core_multi_pack_index;

0 commit comments

Comments
 (0)