Code Review
/
common
/
bash_it.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
8701f70
)
Trim the whitespace from git stash output
author
Travis Swicegood
<development@domain51.com>
Mon, 25 Nov 2013 23:07:14 +0000
(17:07 -0600)
committer
Travis Swicegood
<development@domain51.com>
Mon, 25 Nov 2013 23:07:14 +0000
(17:07 -0600)
themes/base.theme.bash
patch
|
blob
|
history
diff --git
a/themes/base.theme.bash
b/themes/base.theme.bash
index
96c7cf0
..
d616927
100644
(file)
--- a/
themes/base.theme.bash
+++ b/
themes/base.theme.bash
@@
-90,7
+90,7
@@
function git_prompt_vars {
local behind_re='.+behind ([0-9]+).+'
[[ "${status}" =~ ${ahead_re} ]] && SCM_GIT_AHEAD=" ${SCM_GIT_AHEAD_CHAR}${BASH_REMATCH[1]}"
[[ "${status}" =~ ${behind_re} ]] && SCM_GIT_BEHIND=" ${SCM_GIT_BEHIND_CHAR}${BASH_REMATCH[1]}"
- local stash_count="$(git stash list | wc -l)"
+ local stash_count="$(git stash list | wc -l
| tr -d ' '
)"
[[ "${stash_count}" -gt 0 ]] && SCM_GIT_STASH=" {${stash_count}}"
}