Re: [GSoC RFC PATCH v4 2/4] repo: add the field references.format
- From
Lucas Seiki Oshiro <lucasseikioshiro@gmail.com>
- Date
- Jul 18, 2025, 20:26 UTC
- Message-ID
- <6ED935E8-05CE-4155-B56C-A113926915E6@gmail.com>
- In-Reply-To
- <oir6mpubnuplnjatdhlyljslakmh72wlax4afuqnsiyob65xfh@5rft32ln2zvk>
> So maybe we have three different output modes for `--format=<mode>`: > `user` (default), `keyvalue`, and `nul`?
What about `porcelain` (default), `keyvalue` and `null` (being `-z` an alias for this last one)?
> For `git repo info`, I'm not entirely certain how the default > user-friendly mode would/should differ from the key-value one
Even for the "survey" part, would it be useful to have a key-value and another human-readable format?
Another thing that I was thinking (as a future feature): what about using by default the user-friendly format and using the null-terminated format when piping the output to another command (like git-diff does with the colors)?