From: K Jayatheerth Date: Tue, 09 Jun 2026 05:00:19 GMT Subject: Re: [GSoC PATCH v2 0/4] teach git repo info to handle path keys Message-ID: In-Reply-To: On Tue, Jun 9, 2026 at 4:06 AM Junio C Hamano wrote: > > K Jayatheerth 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. Makes sense. Explicit keys like path.gitdir.absolute and path.gitdir.relative are unambiguous for scripting, and saving a few keystrokes isn't worth introducing a configurable default that would make the output unpredictable. I'll actually drop question 2 from the open questions in v3's cover letter. Thanks! Regards, - K Jayatheerth