diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-03-10 08:13:28 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-03-10 13:16:20 -0700 |
| commit | 19be71db9c3faafc113c16b4ca9fc30281baf1ce (patch) | |
| tree | 27d2dc625230b2a9e309dbd3b2ad442908952de1 /builtin/pack-objects.c | |
| parent | object-file-convert: stop depending on `the_repository` (diff) | |
| download | git-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.c | 2 |
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, |
