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

[PATCH] git completion: add "stash" from refs/stash to __git_heads



From: Daniel Hahler <git@xxxxxxxxxx>

---
 Completion/Unix/Command/_git | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 9a78bf4..17c4d57 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
-- 
2.3.0.dirty



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