diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2018-05-27 08:38:26 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-29 04:28:44 (GMT) |
commit | 2b1c01d22ef280ef3a6efd70db2b9aa58359ee36 (patch) | |
tree | 4bb3faabcbcbb280d9c3417fccce1c0b87625593 /t/t9902-completion.sh | |
parent | e144d126d74f5d2702870ca9423743102eec6fcd (diff) | |
download | git-2b1c01d22ef280ef3a6efd70db2b9aa58359ee36.zip git-2b1c01d22ef280ef3a6efd70db2b9aa58359ee36.tar.gz git-2b1c01d22ef280ef3a6efd70db2b9aa58359ee36.tar.bz2 |
parse-options: option to let --git-completion-helper show negative form
When 7fb6aefd2a (Merge branch 'nd/parseopt-completion' - 2018-03-14)
is merged, the completion for negative form is left out because the
series is alread long and it could be done in a follow up series. This
is it.
--git-completion-helper now provides --no-xxx so that git-completion.bash
can drop the extra custom --no-xxx in the script. It adds a lot more
--no-xxx than what's current provided by the git-completion.bash
script. We'll trim that down later.
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/t9902-completion.sh')
-rwxr-xr-x | t/t9902-completion.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh index 1b34caa..07c3e3b 100755 --- a/t/t9902-completion.sh +++ b/t/t9902-completion.sh @@ -1237,20 +1237,31 @@ test_expect_success 'double dash "git" itself' ' test_expect_success 'double dash "git checkout"' ' test_completion "git checkout --" <<-\EOF --quiet Z + --no-quiet Z --detach Z + --no-detach Z --track Z + --no-track Z --orphan=Z + --no-orphan Z --ours Z + --no-ours Z --theirs Z + --no-theirs Z --merge Z + --no-merge Z --conflict=Z + --no-conflict Z --patch Z + --no-patch Z --ignore-skip-worktree-bits Z + --no-ignore-skip-worktree-bits Z --ignore-other-worktrees Z + --no-ignore-other-worktrees Z --recurse-submodules Z - --progress Z - --no-track Z --no-recurse-submodules Z + --progress Z + --no-progress Z EOF ' @@ -1457,6 +1468,7 @@ test_expect_success 'completion used <cmd> completion for alias: !f() { : git <c test_expect_success 'completion without explicit _git_xxx function' ' test_completion "git version --" <<-\EOF --build-options Z + --no-build-options Z EOF ' |