]> git.ipfire.org Git - thirdparty/git.git/commit
path: refactor `repo_worktree_path()` family of functions
authorPatrick Steinhardt <ps@pks.im>
Fri, 7 Feb 2025 11:03:28 +0000 (12:03 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Feb 2025 17:59:21 +0000 (09:59 -0800)
commit93a8cfaf3c24f8c1f999b2ca5532ff8f46e0808d
treef64efa23c359303513f89a6c321e93f22015df9b
parentbdfc07bfdf3f4f4ef94580c0cb46eef5977bb810
path: refactor `repo_worktree_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 "worktree" family of
functions accordingly.

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