aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/pack-objects.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-03-10 08:13:28 +0100
committerJunio C Hamano <gitster@pobox.com>2025-03-10 13:16:20 -0700
commit19be71db9c3faafc113c16b4ca9fc30281baf1ce (patch)
tree27d2dc625230b2a9e309dbd3b2ad442908952de1 /builtin/pack-objects.c
parentobject-file-convert: stop depending on `the_repository` (diff)
downloadgit-19be71db9c3faafc113c16b4ca9fc30281baf1ce.tar.gz
git-19be71db9c3faafc113c16b4ca9fc30281baf1ce.zip
delta-islands: stop depending on `the_repository`
There are multiple sites in "delta-islands.c" where we use the global `the_repository` variable, either explicitly or implicitly by using `the_hash_algo`. Refactor the code to stop using `the_repository`. In most cases this is trivial because we already had a repository available in the calling context, with the only exception being `propagate_island_marks()`. Adapt it so that the repository gets passed in via a parameter. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/pack-objects.c')
-rw-r--r--builtin/pack-objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index eefc6c7809..fba5db7465 100644
--- a/builtin/pack-objects.c
+++ b/builtin/pack-objects.c
@@ -3847,7 +3847,7 @@ static void show_commit(struct commit *commit, void *data UNUSED)
index_commit_for_bitmap(commit);
if (use_delta_islands)
- propagate_island_marks(commit);
+ propagate_island_marks(the_repository, commit);
}
static void show_object(struct object *obj, const char *name,