]> git.ipfire.org Git - thirdparty/git.git/commit
repo: add the flag -z as an alias for --format=nul
authorLucas Seiki Oshiro <lucasseikioshiro@gmail.com>
Thu, 4 Sep 2025 13:40:16 +0000 (10:40 -0300)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Sep 2025 18:36:39 +0000 (11:36 -0700)
commita92f5ca0d5c1b27f70a519efba967d613fd48a7a
tree6c40ab17d68988c5be5c597f48aab7b183d71978
parentc8f660a7cab5ab3b9c57677e66cb41bb57ee0114
repo: add the flag -z as an alias for --format=nul

Other Git commands that have nul-terminated output (e.g. git-config,
git-status, git-ls-files) have a flag `-z` for using the null character
as the record separator.

Add the `-z` flag to git-repo-info as an alias for `--format=nul`,
making it consistent with the behavior of the other commands.

Mentored-by: Karthik Nayak <karthik.188@gmail.com>
Mentored-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Lucas Seiki Oshiro <lucasseikioshiro@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-repo.adoc
builtin/repo.c
t/t1900-repo.sh