Re: [PATCH v4 0/2] rev-list: print additional missing object information
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 5, 2025, 13:18 UTC
- Message-ID
- <xmqq5xlor0la.fsf@gitster.g>
- In-Reply-To
- <20250205004147.887106-1-jltobler@gmail.com>
Justin Tobler <jltobler@gmail.com> writes:
Show 6 quoted lines
> One concern I currently have with this quoting approach is that it is a > bit more challenging to machine parse compared to something like using a > null byte to delimit between missing info. One option is, in a followup > series, introduce a git-for-each-ref(1) style format syntax. Maybe > something like: `--missing=print-info:%(path)%00%(type)`. I'm curious if > anyone may have thoughts around this.
Would it be so bad if we said that in -z mode with --info option, each record is terminated with two NUL bytes, and elements on a list of var=value pairs have a single NUL in between, or something silly like that? The point is to get away with just a fixed format, without any customization.