]> git.feebdaed.xyz Git - 0xmirror/git.git/commit
repo: add -z as an alias for --format=nul to git-repo-structure
authorLucas Seiki Oshiro <lucasseikioshiro@gmail.com>
Thu, 4 Dec 2025 20:10:12 +0000 (17:10 -0300)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Dec 2025 02:39:19 +0000 (11:39 +0900)
commit76c0704bdf6ee8ac0be11830cb6ae8d08cc587a8
tree13d438af035169365e285d3779e846e79e11e8d5
parent768cf991ffea54dbcaf63c45750f0e3a26ebdcc6
repo: add -z as an alias for --format=nul to git-repo-structure

Other Git commands that have nul-terminated output, such as git-config,
git-status, git-ls-files, and git-repo-info have a flag `-z` for using
the null character as the record separator.

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

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/t1901-repo-structure.sh