diff options
author | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2012-05-02 12:08:21 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2012-05-02 12:08:57 +0200 |
commit | 2cdb2bd5e89e7975201146c6da64d6b7d10cf04d (patch) | |
tree | 1a82820e0d5ae4eb6b787fc230f041c8b779b977 /01_Internal.zsh | |
parent | be48d7ed06c14dd303822f86dde74a057a111e03 (diff) |
[Git] Show stashed commits
Diffstat (limited to '01_Internal.zsh')
-rw-r--r-- | 01_Internal.zsh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/01_Internal.zsh b/01_Internal.zsh index 1e91763..0194ef4 100644 --- a/01_Internal.zsh +++ b/01_Internal.zsh @@ -202,6 +202,13 @@ __get_git_branch () [ ! "$checkouted_branch" ] && my_git_branch="($my_git_branch)" fi + # Show number of stashed commits by appending '+' signs for each + local _stashed=$(git stash list | wc -l ) + [ "$_stashed" -gt 0 ] && for i in {1..$_stashed} + do + my_git_branch+="+" + done + echo " "$my_git_branch } |