Re: [GSoC Patch v2 6/7] repo: add path.grafts with absolute and relative suffix formatting
- From
Lucas Seiki Oshiro <lucasseikioshiro@gmail.com>
- Date
- Jul 20, 2026, 00:20 UTC
- Message-ID
- <DB49CF15-4980-4213-8463-4C0FE2EC8438@gmail.com>
- In-Reply-To
- <20260717133015.32040-7-jayatheerthkulkarni2005@gmail.com>
> Introduce `path.grafts.absolute` and `path.grafts.relative` keys to > `git repo info`. This allows scripting layers to query the active grafts > context cleanly while scaling transparently with active `GIT_GRAFT_FILE` > environment variable overrides.
I ran `git repo info path.grafts.relative` in a repository with no `grafts` file, and it returned `.git/info/grafts`, which obviously doesn't exist.
Wouldn't it be better if we check if that file exists before returning this value?