From 15c6cbdb0ec9a67bf063014da93073ff452a33dd Mon Sep 17 00:00:00 2001 From: Colin Hebert Date: Thu, 22 Mar 2012 17:54:24 +0000 Subject: [PATCH] Add Table of scenarii, git.io and fix comment --- plugins/git/functions/git-info | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/git/functions/git-info b/plugins/git/functions/git-info index 8603892b..11078460 100644 --- a/plugins/git/functions/git-info +++ b/plugins/git/functions/git-info @@ -278,8 +278,9 @@ function git-info() { branch="$match[1]" fi 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 + # Count added, deleted, modified, renamed, unmerged, untracked, dirty. + # 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" == [\ ACMRT]D\ * ]] && (( deleted++ )) [[ "$line" == ?[MT]\ * ]] && (( modified++ ))