]> git.ipfire.org Git - thirdparty/git.git/commit
environment: make `get_object_directory()` accept a repository
authorPatrick Steinhardt <ps@pks.im>
Thu, 12 Sep 2024 11:29:30 +0000 (13:29 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Sep 2024 17:15:39 +0000 (10:15 -0700)
commita3673f48986cf990006e56a57e4ad3c7134161e7
treee851e1882c9ab652b45e416dc2b4196ed0f09ac0
parent661624a4f6299b44f56df162100fdca528c119c1
environment: make `get_object_directory()` accept a repository

The `get_object_directory()` function retrieves the path to the object
directory for `the_repository`. Make it accept a `struct repository`
such that it can work on arbitrary repositories and make it part of the
repository subsystem. This reduces our reliance on `the_repository` and
clarifies scope.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
20 files changed:
builtin/commit-graph.c
builtin/count-objects.c
builtin/multi-pack-index.c
builtin/pack-objects.c
builtin/prune.c
builtin/repack.c
bulk-checkin.c
environment.c
environment.h
fetch-pack.c
http-backend.c
object-file.c
pack-write.c
packfile.c
prune-packed.c
repository.c
repository.h
server-info.c
setup.c
tmp-objdir.c