summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2015-02-08 15:09:57 +0100
committerFrank Terbeck <ft@bewatermyfriend.org>2015-02-08 20:27:25 +0100
commitffaf99288fad178850c575d4025662b7252e56c1 (patch)
tree411a7d348dd445df00db5395fcc2ef424b458be8 /Completion/Unix/Command
parent860ef4e125673f07633e811a8f893c3e62c405c9 (diff)
downloadzsh-ffaf99288fad178850c575d4025662b7252e56c1.tar.gz
zsh-ffaf99288fad178850c575d4025662b7252e56c1.tar.xz
zsh-ffaf99288fad178850c575d4025662b7252e56c1.zip
34469: git completion: add "stash" from refs/stash to __git_heads
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_git1
1 files changed, 1 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 9a78bf48c..17c4d5792 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5621,6 +5621,7 @@ __git_heads () {
     for f in HEAD FETCH_HEAD ORIG_HEAD MERGE_HEAD; do
       [[ -f $gitdir/$f ]] && heads+=$f
     done
+    [[ -f $gitdir/refs/stash ]] && heads+=stash
   fi
 
   _wanted heads expl head compadd "$@" -a - heads