|
|
@ -278,12 +278,12 @@ function git-info() {
|
|
|
|
branch="$match[1]"
|
|
|
|
branch="$match[1]"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
else
|
|
|
|
# Count added, deleted, modified, renamed, unmerged, untracked, dirty.
|
|
|
|
# Count: added/deleted/modified/renamed/unmerged/untracked
|
|
|
|
[[ "$line" == (((A|M|D|T) )|(AD|AM|AT|MM))\ * ]] && (( added++ ))
|
|
|
|
[[ "$line" == (A|M|D|C)[MD\ ]\ * ]] && (( added++ ))
|
|
|
|
[[ "$line" == ( D|AD)\ * ]] && (( deleted++ ))
|
|
|
|
[[ "$line" == [\ MARC]D\ * ]] && (( deleted++ ))
|
|
|
|
[[ "$line" == (( (M|T))|(AM|AT|MM))\ * ]] && (( modified++ ))
|
|
|
|
[[ "$line" == ?M\ * ]] && (( modified++ ))
|
|
|
|
[[ "$line" == R\ \ * ]] && (( renamed++ ))
|
|
|
|
[[ "$line" == R?\ * ]] && (( renamed++ ))
|
|
|
|
[[ "$line" == UU\ * ]] && (( unmerged++ ))
|
|
|
|
[[ "$line" == (?U|U?|AA|DD)\ * ]] && (( unmerged++ ))
|
|
|
|
[[ "$line" == \?\?\ * ]] && (( untracked++ ))
|
|
|
|
[[ "$line" == \?\?\ * ]] && (( untracked++ ))
|
|
|
|
(( dirty++ ))
|
|
|
|
(( dirty++ ))
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|