Re: [GSoC PATCH v2 0/4] teach git repo info to handle path keys
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 8, 2026, 22:36 UTC
- Message-ID
- <xmqqcxy0vevi.fsf@gitster.g>
- In-Reply-To
- <20260605163012.181089-1-jayatheerthkulkarni2005@gmail.com>
K Jayatheerth <jayatheerthkulkarni2005@gmail.com> writes:
> 2. Should we consider a default option? > Currently we have path.gitdir.absolute. Should we consider an > option where a plain `path.gitdir` returns some default?
Probably not. It will invite folks wanting to tweak the default between absolute and relative, rendering this feature useless for robust scripting. You do not necessarily want to save typing in plumbing interface. You want to reduce ambiguity by reducing more than one ways to do a thing down to just one way, and as long as that one way is not overly verbose, you are fine.