summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-04-10 07:28:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-04-10 07:28:22 (GMT)
commitef06d74b4574b0da0928b4919c01da63fadcdca2 (patch)
tree34a9f7af7cd8808129424fec719cee96aa66d39e /t
parent51f813c6b3a4e37846ee8a45086d05263b7ec895 (diff)
parentc55c4a5b6476073ef0f09665c6c1ef1e38980087 (diff)
downloadgit-ef06d74b4574b0da0928b4919c01da63fadcdca2.zip
git-ef06d74b4574b0da0928b4919c01da63fadcdca2.tar.gz
git-ef06d74b4574b0da0928b4919c01da63fadcdca2.tar.bz2
Merge branch 'nd/parseopt-completion-more'
The mechanism to use parse-options API to automate the command line completion continues to get extended and polished. * nd/parseopt-completion-more: completion: use __gitcomp_builtin in _git_cherry completion: use __gitcomp_builtin in _git_ls_tree completion: delete option-only completion commands completion: add --option completion for most builtin commands completion: factor out _git_xxx calling code completion: mention the oldest version we need to support git.c: add hidden option --list-parseopt-builtins git.c: move cmd_struct declaration up
Diffstat (limited to 't')
-rwxr-xr-xt/t9902-completion.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh
index b7f5b1e..1b34caa 100755
--- a/t/t9902-completion.sh
+++ b/t/t9902-completion.sh
@@ -1454,6 +1454,12 @@ test_expect_success 'completion used <cmd> completion for alias: !f() { : git <c
EOF
'
+test_expect_success 'completion without explicit _git_xxx function' '
+ test_completion "git version --" <<-\EOF
+ --build-options Z
+ EOF
+'
+
test_expect_failure 'complete with tilde expansion' '
git init tmp && cd tmp &&
test_when_finished "cd .. && rm -rf tmp" &&