]> git.ipfire.org Git - thirdparty/git.git/commit
path: refactor `repo_git_path()` family of functions
authorPatrick Steinhardt <ps@pks.im>
Fri, 7 Feb 2025 11:03:27 +0000 (12:03 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Feb 2025 17:59:21 +0000 (09:59 -0800)
commitbdfc07bfdf3f4f4ef94580c0cb46eef5977bb810
treeec25e305b583e03f6fbacf8f5594d7188d86fdb8
parent70a16ff8a162ad0b6a39d17a1699a2949e2a2674
path: refactor `repo_git_path()` family of functions

As explained in an earlier commit, we're refactoring path-related
functions to provide a consistent interface for computing paths into the
commondir, gitdir and worktree. Refactor the "gitdir" family of
functions accordingly.

Note that the `repo_git_pathv()` function is converted into an internal
implementation detail. It is only used to implement `the_repository`
compatibility shims and will eventually be removed from the public
interface.

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