diff options
author | 2018-04-10 16:28:22 +0900 | |
---|---|---|
committer | 2018-04-10 16:28:22 +0900 | |
commit | ef06d74b4574b0da0928b4919c01da63fadcdca2 (patch) | |
tree | 34a9f7af7cd8808129424fec719cee96aa66d39e /t | |
parent | Merge branch 'ds/bsearch-hash' (diff) | |
parent | completion: use __gitcomp_builtin in _git_cherry (diff) | |
download | tgif-ef06d74b4574b0da0928b4919c01da63fadcdca2.tar.xz |
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-x | t/t9902-completion.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh index b7f5b1e632..1b34caa1e1 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" && |