From 048f7e1d9af769b5ee63cdbcdab30378b8df5cc4 Mon Sep 17 00:00:00 2001 From: Colin Hebert Date: Wed, 14 Mar 2012 18:40:55 +0000 Subject: [PATCH] Git-plugin: Add the T status --- 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 dc4010bb..00cfc451 100644 --- a/plugins/git/functions/git-info +++ b/plugins/git/functions/git-info @@ -279,9 +279,10 @@ function git-info() { fi else # 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" == ?M\ * ]] && (( modified++ )) + [[ "$line" == ?[M|T]\ * ]] && (( modified++ )) [[ "$line" == R?\ * ]] && (( renamed++ )) [[ "$line" == (?U|U?|AA|DD)\ * ]] && (( unmerged++ )) [[ "$line" == \?\?\ * ]] && (( untracked++ ))