Thread (1 message) 1 message, 1 author, 2025-07-28

Re: [GSoC PATCH v5 1/5] repo: declare the repo command

From: Junio C Hamano <hidden>
Date: 2025-07-28 17:56:43

Lucas Seiki Oshiro [off-list ref] 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help