1
0
Fork 0

Git-plugin: Add the T status

pull/37/head
Colin Hebert 13 years ago
parent 5503965b01
commit 048f7e1d9a

@ -279,9 +279,10 @@ function git-info() {
fi fi
else else
# Count: added/deleted/modified/renamed/unmerged/untracked # Count: added/deleted/modified/renamed/unmerged/untracked
[[ "$line" == (A|M|D|C)[MD\ ]\ * ]] && (( added++ )) # T (type change) is undocumented, see https://raw.github.com/gitster/git/master/Documentation/RelNotes/1.7.8.2.txt
[[ "$line" == (A|M|D|C|T)[MD\ ]\ * ]] && (( added++ ))
[[ "$line" == [\ MARC]D\ * ]] && (( deleted++ )) [[ "$line" == [\ MARC]D\ * ]] && (( deleted++ ))
[[ "$line" == ?M\ * ]] && (( modified++ )) [[ "$line" == ?[M|T]\ * ]] && (( modified++ ))
[[ "$line" == R?\ * ]] && (( renamed++ )) [[ "$line" == R?\ * ]] && (( renamed++ ))
[[ "$line" == (?U|U?|AA|DD)\ * ]] && (( unmerged++ )) [[ "$line" == (?U|U?|AA|DD)\ * ]] && (( unmerged++ ))
[[ "$line" == \?\?\ * ]] && (( untracked++ )) [[ "$line" == \?\?\ * ]] && (( untracked++ ))

Loading…
Cancel
Save