]> git.feebdaed.xyz Git - 0xmirror/git.git/commit
path: move `enter_repo()` into "setup.c"
authorPatrick Steinhardt <ps@pks.im>
Wed, 19 Nov 2025 07:50:49 +0000 (08:50 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Nov 2025 01:41:03 +0000 (17:41 -0800)
commit831e02340b9de46c9ea0a1bbce3894f390f5a45e
tree2277541bc28b371ed41ef8538b6ea60f85aa33f8
parentc6def6a05504575dc92f8be785f18e326ea5f23c
path: move `enter_repo()` into "setup.c"

The function `enter_repo()` is used to enter a repository at a given
path. As such it sits way closer to setting up a repository than it does
with handling paths, but regardless of that it's located in "path.c"
instead of in "setup.c".

Move the function into "setup.c".

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/receive-pack.c
builtin/upload-archive.c
builtin/upload-pack.c
http-backend.c
path.c
path.h
setup.c
setup.h