completion: disable dwim on "git switch -d"
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 20 Jun 2019 09:55:22 +0000 (16:55 +0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Jun 2019 20:31:51 +0000 (13:31 -0700)
commit97ed685701a6df0273f7d29fd5bc0a0658a63cad
tree75b86aef84a29988f7311392a02124af3990908e
parentd16dc428b47837cebd231de1fad76d9c307f34b0
completion: disable dwim on "git switch -d"

Even though dwim is enabled by default, it will never be done when
--detached is specified. If you force "-d --guess" you will get an error
because --guess then implies -c which cannot be used with -d. So we can
disable dwim in "switch -d". It makes the completion list in this case a
bit shorter.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash