From: Wincent Colaiuta Date: Fri, 07 Dec 2007 13:00:36 GMT Subject: Re: [PATCH] Teach "git add -i" to colorize whitespace errors Message-ID: <822D2B27-2280-4A53-A242-B69726CF129D@wincent.com> In-Reply-To: <1197030910-29638-1-git-send-email-win@wincent.com> El 7/12/2007, a las 13:35, Wincent Colaiuta escribió: > @@ -662,8 +648,10 @@ sub split_hunk { > (($n_cnt != 1) ? ",$n_cnt" : '') . > " @@\n"); > unshift @{$hunk->{TEXT}}, $head; > + unshift @{$hunk->{DISPLAY}}, > + $use_color ? (colored $fraginfo_color, $head) : $head; > } > - return map { $_->{TEXT} } @split; > + return @split; > } Actually, $diff_use_color would probably be more appropriate than $use_color above. Wincent