]> git.feebdaed.xyz Git - 0xmirror/git.git/commit
setup: convert `set_git_dir()` to have file scope
authorPatrick Steinhardt <ps@pks.im>
Wed, 19 Nov 2025 07:50:50 +0000 (08:50 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Nov 2025 01:41:03 +0000 (17:41 -0800)
commit7c188a9e45405ff911b81a5dd9029f4e91fb338e
tree99b48d19b717b39a7b1c73da37eaf2ffc3502a3c
parent831e02340b9de46c9ea0a1bbce3894f390f5a45e
setup: convert `set_git_dir()` to have file scope

We don't have any external callers of `set_git_dir()` anymore now that
`enter_repo()` has been moved into "setup.c". Remove the declaration and
mark the function as static.

Note that this change requires us to move the implementation around so
that we can avoid adding any new forward declarations.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c
setup.h