1
0
Fork 0

git-plugin: Add the [AMDCT]T case and TD case

pull/37/head
Colin Hebert 13 years ago
parent c48fc95e0a
commit cca5ba0b47

@ -280,11 +280,11 @@ 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][M\ ]|[AMCT]D)\ * ]] && (( added++ ))
[[ "$line" == [\ MARC]D\ * ]] && (( deleted++ ))
[[ "$line" == ([ACDMT][\ MT]|[ACMT]D)\ * ]] && (( added++ ))
[[ "$line" == [\ ACMRT]D\ * ]] && (( deleted++ ))
[[ "$line" == ?[MT]\ * ]] && (( modified++ ))
[[ "$line" == R?\ * ]] && (( renamed++ ))
[[ "$line" == (?U|U?|AA|DD)\ * ]] && (( unmerged++ ))
[[ "$line" == (AA|DD|U?|?U)\ * ]] && (( unmerged++ ))
[[ "$line" == \?\?\ * ]] && (( untracked++ ))
(( dirty++ ))
fi

Loading…
Cancel
Save