summary refs log tree commit diff
path: root/Completion/Unix/Command/_git
diff options
context:
space:
mode:
authorFrank Terbeck <bewater@users.sourceforge.net>2011-04-21 20:57:51 +0000
committerFrank Terbeck <bewater@users.sourceforge.net>2011-04-21 20:57:51 +0000
commit37bb9f7353e1a4510f0a52400cf257e27e3e793c (patch)
tree912d61848e5b09135c33046798023c4766972ddd /Completion/Unix/Command/_git
parent8d50102fdafb979331779a86317fe5d8577b5a64 (diff)
downloadzsh-37bb9f7353e1a4510f0a52400cf257e27e3e793c.tar.gz
zsh-37bb9f7353e1a4510f0a52400cf257e27e3e793c.tar.xz
zsh-37bb9f7353e1a4510f0a52400cf257e27e3e793c.zip
Valentin Haenel: 29019: Fix git stash completion (apply and pop subcommands).
Diffstat (limited to 'Completion/Unix/Command/_git')
-rw-r--r--Completion/Unix/Command/_git3
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 000c1a43b..37ea3383a 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1331,10 +1331,11 @@ _git-stash () {
             ':: :__git_stashes' && ret=0
           ;;
         (pop|apply)
-          _arguments -
+          _arguments \
             '--index[try to reinstate the changes added to the index as well]' \
             '(-q --quiet)'{-q,--quiet}'[suppress all output]' \
             ':: :__git_stashes' && ret=0
+          ;;
         (branch)
           _arguments \
             ': :__git_guard_branch-name' \