Re: [GSoC PATCH 1/2] repo: add the flag -z as an alias for --format=nul
On Thu, Aug 21, 2025 at 6:09 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 17 quoted lines
>
> Karthik Nayak <karthik.188@gmail.com> writes:
>
> >> -git repo info [--format=(keyvalue|nul)] [<key>...]
> >> +git repo info [--format=(keyvalue|nul)|-z] [<key>...]
> >>
> >
> > Nit: Perhaps we can leave a space around '|' to make it easier to read?
>
> Documentation/CodingGuidelines (Synopsis Syntax) has explicit
> guidelines about these things.
>
> Don't use spacing around "|" tokens when they're used to separate the
> alternate arguments of an option:
> Do: --track[=(direct|inherit)]
> Don't: --track[=(direct | inherit)]
>
I stand corrected, thanks!