Re: [PATCH v2 3/3] repo: add -z as an alias for --format=nul to git-repo-structure
- From
Lucas Seiki Oshiro <lucasseikioshiro@gmail.com>
- Date
- Dec 18, 2025, 23:02 UTC
- Message-ID
- <5240C85D-7587-4042-AA75-58356BCFF351@gmail.com>
- In-Reply-To
- <xmqqh5txfv7b.fsf@gitster.g>
Hi, Junio!
> * Instead of munging the expected file so that it contains a NUL, > and compare the actual output with it, munge the NUL terminated > outout to make it text and compare with the expected file in text > format.
Ok! I'll do that in the next version.
> * I see your -z output is "<key> LF <value> NUL", but was there a > particular reason why "<key> NUL <value> NUL" was not chosen?
This was a suggestions by Phillip Wood [1]. We've chosen this format following the format of git-config.
[1] https://lore.kernel.org/git/223c7cbd-610e-49e2-90e2-5914cbc0f1d7@gmail.com/