Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] github #119: fix completion for git bisect visualize



When trying to use the completion for git bisect visualize one currently
is greeted with the curious error of something like this:

    git bisect visualize _git-bisect:89: command not found: arch

While in this case 'arch' is the name of the first folder in the
directory. The cause for this is a missing separation of switch cases
which we fix by inserting the needed ";;".

Signed-off-by: Christian Heusel <christian@xxxxxxxxx>
---
This is a re-send of https://github.com/zsh-users/zsh/pull/119 which I
will close should this patch be accepted!

Thanks for your awesome work on zsh! <3
---
 Completion/Unix/Command/_git | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 22b945e38..6c6d59b24 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -278,6 +278,7 @@ _git-bisect () {
           _arguments -C -s \
             $log_options \
             $revision_options && ret=0
+          ;;
         (*)
           _nothing
           ;;
--
2.46.0





Messages sorted by: Reverse Date, Date, Thread, Author