1
0
Fork 0

Add Table of scenarii, git.io and fix comment

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

@ -278,8 +278,9 @@ function git-info() {
branch="$match[1]" branch="$match[1]"
fi fi
else else
# Count: added/deleted/modified/renamed/unmerged/untracked # Count added, deleted, modified, renamed, unmerged, untracked, dirty.
# T (type change) is undocumented, see https://raw.github.com/gitster/git/master/Documentation/RelNotes/1.7.8.2.txt # T (type change) is undocumented, see http://git.io/FnpMGw.
# For a table of scenarii, see http://i.imgur.com/2YLu1.png.
[[ "$line" == ([ACDMT][\ MT]|[ACMT]D)\ * ]] && (( added++ )) [[ "$line" == ([ACDMT][\ MT]|[ACMT]D)\ * ]] && (( added++ ))
[[ "$line" == [\ ACMRT]D\ * ]] && (( deleted++ )) [[ "$line" == [\ ACMRT]D\ * ]] && (( deleted++ ))
[[ "$line" == ?[MT]\ * ]] && (( modified++ )) [[ "$line" == ?[MT]\ * ]] && (( modified++ ))

Loading…
Cancel
Save