Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/prompt-stash-could-be-packed' into maint
author
Junio C Hamano
<gitster@pobox.com>
Fri, 19 Sep 2014 21:05:11 +0000
(14:05 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 19 Sep 2014 21:05:11 +0000
(14:05 -0700)
* jk/prompt-stash-could-be-packed:
git-prompt: do not look for refs/stash in $GIT_DIR
contrib/completion/git-prompt.sh
patch
|
blob
|
history
raw
(from parent 1:
92ea1ac
)
diff --git
a/contrib/completion/git-prompt.sh
b/contrib/completion/git-prompt.sh
index 9d684b10a67ea663410db3ba68482c1a52bbc367..c5473dc8dba78b372fd95ef2bf5257ff5cdc3baf 100644
(file)
--- a/
contrib/completion/git-prompt.sh
+++ b/
contrib/completion/git-prompt.sh
@@
-468,7
+468,8
@@
__git_ps1 ()
fi
fi
if [ -n "${GIT_PS1_SHOWSTASHSTATE-}" ] &&
- [ -r "$g/refs/stash" ]; then
+ git rev-parse --verify --quiet refs/stash >/dev/null
+ then
s="$"
fi