Don't count 'unmerged double-deleted' files as added in git plugin
This commit is contained in:
parent
e378fd36a3
commit
c48fc95e0a
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ function git-info() {
|
|||
else
|
||||
# Count: added/deleted/modified/renamed/unmerged/untracked
|
||||
# T (type change) is undocumented, see https://raw.github.com/gitster/git/master/Documentation/RelNotes/1.7.8.2.txt
|
||||
[[ "$line" == [AMDCT][MD\ ]\ * ]] && (( added++ ))
|
||||
[[ "$line" == ([AMDCT][M\ ]|[AMCT]D)\ * ]] && (( added++ ))
|
||||
[[ "$line" == [\ MARC]D\ * ]] && (( deleted++ ))
|
||||
[[ "$line" == ?[MT]\ * ]] && (( modified++ ))
|
||||
[[ "$line" == R?\ * ]] && (( renamed++ ))
|
||||
|
|
Loading…
Add table
Reference in a new issue