Re: [GSoC PATCH v5 1/5] repo: declare the repo command
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 28, 2025, 17:56 UTC
- Message-ID
- <xmqqy0s8url3.fsf@gitster.g>
- In-Reply-To
- <1642D169-F952-4DD6-8D95-50D5F3C400F1@gmail.com>
Lucas Seiki Oshiro <lucasseikioshiro@gmail.com> writes:
> Hmmm... I'm thinking about what is the "right thing" in this context. > For example, `git config --list` doesn't quote when in its key=value > format. Perhaps I'm citing `git config --list` too much :-), but it is > because is the closer command to `git-repo-info` in that sense.
Yup. If we do need to support non-z output format and keep it parseable, I am afraid that we cannot avoid quoting.
An old mistake is not a good excuse to repeat the same one. Even though the config key names forbid <LF> and <NUL>, "git config --list" still cannot be used without "-z" when the keys may contain "=", for example, if the caller wants to parse the output correctly because it was misdesigned to not use any quoting.