summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_git1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 002f52094..dffe88c88 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-08  Daniel Hahler  <git@thequod.de>
+
+	* 34469: Completion/Unix/Command/_git: git completion: add "stash"
+	from refs/stash to __git_heads
+
 2015-02-07  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
 	* 34464: Completion/Unix/Command/_mtr: Update mtr completion
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