Re: [PATCH] Teach "git add -i" to colorize whitespace errors
- From
Wincent Colaiuta <win@wincent.com>
- Date
- Dec 7, 2007, 13:00 UTC
- 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ó:
Show 10 quoted lines
> @@ -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