]> git.99rst.org Git - git.git/commit
repo: add path.gitdir with absolute and relative suffix formatting
authorK Jayatheerth <redacted>
Wed, 24 Jun 2026 03:37:48 +0000 (09:07 +0530)
committerJunio C Hamano <redacted>
Wed, 24 Jun 2026 04:15:52 +0000 (21:15 -0700)
commit3ac28d832aefe06e0fb9390d3e20a9c32350e052
tree1b3c8c094904c3c3477d58713b06fa51484a5028
parent1efca6d0b2304360901dccfcbd5ea4f276ecf8c9
repo: add path.gitdir with absolute and relative suffix formatting

Scripts need a stable way to locate the git directory without
parsing rev-parse output or relying on its flag-driven path format
selection. There is no way to retrieve this path from git repo info
today.

Introduce path.gitdir.absolute and path.gitdir.relative keys,
consistent with the path.commondir keys added in the previous patch.
Reuse the test_repo_info_path helper introduced there to validate
both variants.

Mentored-by: Justin Tobler <redacted>
Mentored-by: Lucas Seiki Oshiro <redacted>
Signed-off-by: K Jayatheerth <redacted>
Signed-off-by: Junio C Hamano <redacted>
Documentation/git-repo.adoc
builtin/repo.c
t/t1900-repo-info.sh
git clone https://git.99rst.org/PROJECT