Re: [GSoC PATCH 1/2] repo: add the flag -z as an alias for --format=nul
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 21, 2025, 16:09 UTC
- Message-ID
- <xmqqsehk3bcp.fsf@gitster.g>
- In-Reply-To
- <CAOLa=ZQZCUsa7M0mh1oCq8hhBZS05=jw4y2Lr1r3rPe0-ajbhw@mail.gmail.com>
Karthik Nayak <karthik.188@gmail.com> writes:
Show 5 quoted lines
>> -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)]