]> git.ipfire.org Git - thirdparty/git.git/commit
tmp-objdir: stop using `the_repository`
authorPatrick Steinhardt <ps@pks.im>
Tue, 17 Dec 2024 06:43:58 +0000 (07:43 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Dec 2024 18:44:31 +0000 (10:44 -0800)
commit727c71a1121c2067223aad8d187409c9822a3f8d
tree69b896b6b61303caae9d981f71cccff0448cbc0d
parentb81093aeae557d56277773dee710eb363c720b6e
tmp-objdir: stop using `the_repository`

Stop using `the_repository` in the "tmp-objdir" subsystem by passing
in the repostiroy when creating a new temporary object directory.

While we could trivially update the caller to pass in the hash algorithm
used by the index itself, we instead pass in `the_hash_algo`. This is
mostly done to stay consistent with the rest of the code in that file,
which isn't prepared to handle arbitrary repositories, either.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/receive-pack.c
bulk-checkin.c
log-tree.c
tmp-objdir.c
tmp-objdir.h