From cca5ba0b477e0f9d98ee1ebd2757f61a675f0278 Mon Sep 17 00:00:00 2001 From: Colin Hebert Date: Thu, 22 Mar 2012 16:03:04 +0000 Subject: [PATCH] git-plugin: Add the [AMDCT]T case and TD case --- plugins/git/functions/git-info | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/git/functions/git-info b/plugins/git/functions/git-info index 02b2c178..8603892b 100644 --- a/plugins/git/functions/git-info +++ b/plugins/git/functions/git-info @@ -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