From 2b1c01d22ef280ef3a6efd70db2b9aa58359ee36 Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Sun, 27 May 2018 10:38:26 +0200 Subject: parse-options: option to let --git-completion-helper show negative form MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Junio C Hamano --- t/t9902-completion.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh index 1b34caa1e1..07c3e3b760 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 completion for alias: !f() { : git