diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2012-04-15 22:44:18 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-04-21 22:39:06 -0700 |
commit | 69ef3c0296e173535b73c7376469a722d54681f2 (patch) | |
tree | a41864761390a961497f86fa7081be44f1df9d93 /t/t9902-completion.sh | |
parent | 3954068128e1907521c19f09dca27068ce8c6945 (diff) | |
download | git-69ef3c0296e173535b73c7376469a722d54681f2.tar.gz git-69ef3c0296e173535b73c7376469a722d54681f2.tar.xz |
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-x | t/t9902-completion.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh index de1c3e91d..0c0cd4100 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 |