aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-12-14 17:04:37 +0900
committerJunio C Hamano <gitster@pobox.com>2025-12-14 17:04:37 +0900
commitaffdbe41bdb537197d50e2db7e18cb94a3058761 (patch)
treef0d5519917332f552211c965ccd4c71ec11691fe /t
parent2378ebcb588cb08fc2a353fbfd1891ce53d15d54 (diff)
parent76c0704bdf6ee8ac0be11830cb6ae8d08cc587a8 (diff)
downloadgit-affdbe41bdb537197d50e2db7e18cb94a3058761.tar.xz
Merge branch 'lo/repo-struct-z'
"git repo struct" learned to take "-z" as a synonym to "--format=nul". * lo/repo-struct-z: repo: add -z as an alias for --format=nul to git-repo-structure repo: use [--format=... | -z] instead of [-z] in git-repo-info synopsis repo: remove blank line from Documentation/git-repo.adoc
Diffstat (limited to 't')
-rwxr-xr-xt/t1901-repo-structure.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t1901-repo-structure.sh b/t/t1901-repo-structure.sh
index 36a71a144e..df7d4ea524 100755
--- a/t/t1901-repo-structure.sh
+++ b/t/t1901-repo-structure.sh
@@ -102,6 +102,13 @@ test_expect_success 'keyvalue and nul format' '
git repo structure --format=nul >out 2>err &&
test_cmp expect_nul out &&
+ test_line_count = 0 err &&
+
+ # "-z", as a synonym to "--format=nul", participates in the
+ # usual "last one wins" rule.
+ git repo structure --format=table -z >out 2>err &&
+
+ test_cmp expect_nul out &&
test_line_count = 0 err
)
'