Re: [PATCH] git-gui: support core.whitespace rules in diff view
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 20, 2010, 23:43 UTC
- Message-ID
- <7vy69stop2.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <87pqv4fqqz.fsf_-_@fox.patthoyts.tk>
Pat Thoyts <patthoyts@users.sourceforge.net> writes:
Show 9 quoted lines
> This is a rather more complete implementation of whitespace highlighting > according to the core.whitespace setting. The diff view whitespace > highlights should match what you see with 'git diff' when color is > enabled for all the whitespace rules except cr-at-eol where there is > currently a rule to hide these. > > Suggested-by: Tor Arvid Lund <torarvid@gmail.com> > Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net> > ---
This might be a very stupid question, but isn't it an easier-to-maintain option to let underlying "git diff" color its output and convert the ANSI coloring to whatever Tcl wants to use, especially in the long run, instead of trying to replicate the logic to check whitespace breakages here?