summaryrefslogtreecommitdiff
path: root/t/t0012-help.sh
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-05-20 18:40:01 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-21 04:23:14 (GMT)
commit63eae83f8f301a1052cdde254b84f5da00e7b9b6 (patch)
treee7cdcb2b4e7f782e5fff9a87173e2ceda479497f /t/t0012-help.sh
parent3c7777672bf9bc9ac2ddb422633b39af4faa1682 (diff)
downloadgit-63eae83f8f301a1052cdde254b84f5da00e7b9b6.zip
git-63eae83f8f301a1052cdde254b84f5da00e7b9b6.tar.gz
git-63eae83f8f301a1052cdde254b84f5da00e7b9b6.tar.bz2
help: add "-a --verbose" to list all commands with synopsis
This lists all recognized commands [1] by category. The group order follows closely git.txt. [1] We may actually show commands that are not built (e.g. if you set NO_PERL you don't have git-instaweb but it's still listed here). I ignore the problem because on Linux a git package could be split anyway. The "git-core" package may not contain git-instaweb even if it's built because it may end up in a separate package. We can't know anyway. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0012-help.sh')
-rwxr-xr-xt/t0012-help.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t0012-help.sh b/t/t0012-help.sh
index 3c91a90..060df24 100755
--- a/t/t0012-help.sh
+++ b/t/t0012-help.sh
@@ -25,6 +25,15 @@ test_expect_success "setup" '
EOF
'
+# make sure to exercise these code paths, the output is a bit tricky
+# to verify
+test_expect_success 'basic help commands' '
+ git help >/dev/null &&
+ git help -a >/dev/null &&
+ git help -g >/dev/null &&
+ git help -av >/dev/null
+'
+
test_expect_success "works for commands and guides by default" '
configure_help &&
git help status &&