summaryrefslogtreecommitdiff
path: root/t/t9902-completion.sh
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2012-04-15 19:44:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-04-22 05:39:06 (GMT)
commit69ef3c0296e173535b73c7376469a722d54681f2 (patch)
treea41864761390a961497f86fa7081be44f1df9d93 /t/t9902-completion.sh
parent3954068128e1907521c19f09dca27068ce8c6945 (diff)
downloadgit-69ef3c0296e173535b73c7376469a722d54681f2.zip
git-69ef3c0296e173535b73c7376469a722d54681f2.tar.gz
git-69ef3c0296e173535b73c7376469a722d54681f2.tar.bz2
completion: add missing general options
And add relevant tests. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9902-completion.sh')
-rwxr-xr-xt/t9902-completion.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh
index de1c3e9..0c0cd41 100755
--- a/t/t9902-completion.sh
+++ b/t/t9902-completion.sh
@@ -180,8 +180,10 @@ test_expect_success 'double dash "git" itself' '
--version Z
--exec-path Z
--html-path Z
+ --info-path Z
--work-tree=
--namespace=
+ --no-replace-objects Z
--help Z
EOF
test_completion "git --"
@@ -202,4 +204,18 @@ test_expect_success 'double dash "git checkout"' '
test_completion "git checkout --"
'
+test_expect_success 'general options' '
+ test_completion "git --ver" "--version " &&
+ test_completion "git --hel" "--help " &&
+ test_completion "git --exe" "--exec-path " &&
+ test_completion "git --htm" "--html-path " &&
+ test_completion "git --pag" "--paginate " &&
+ test_completion "git --no-p" "--no-pager " &&
+ test_completion "git --git" "--git-dir=" &&
+ test_completion "git --wor" "--work-tree=" &&
+ test_completion "git --nam" "--namespace=" &&
+ test_completion "git --bar" "--bare " &&
+ test_completion "git --inf" "--info-path " &&
+ test_completion "git --no-r" "--no-replace-objects "
+'
test_done