Re: [PATCH 0/4] repo: add support for path-related fields
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 2, 2026, 21:34 UTC
- Message-ID
- <xmqq8qc9zzix.fsf@gitster.g>
- In-Reply-To
- <3983da40-bf2c-4665-a7d9-dfebaacb8bd3@gmail.com>
Tian Yuchen <a3205153416@gmail.com> writes:
Show 18 quoted lines
> On 3/3/26 00:38, Junio C Hamano wrote: >> "brian m. carlson" <sandals@crustytoothpaste.net> writes: >> >>> With `git rev-parse`, you can change `--path-format` on the command line >>> between options, so if you want both, you just request one thing, use >>> `--path-format`, and then request the other. However, that can't be >>> done with `git repo` and `--path-format`. >> >> Hmph, that is one advantage of that incremental option handling done >> by "rev-parse", which often is a source of confusion and complaints, >> though ;-) > > Short question: Is using format modifier like (%path:relative), > (%path:absolute) a good solution here? I think it can be implemented by > simply adding a path parsing function in ref-filter.c (and some other > work that aren't particularly challenging). > > It should be user-friendly, readable and free of global flags, right? :-]
What command are we talking about now? Is it a plumbing where predictability, simplicity and performance matters more than end-user friendliness?