Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] git-gui: apply color information from git diff

From: Pat Thoyts <hidden>
Date: 2016-06-15 22:49:50

Kevin Ballard [off-list ref] writes:
On Oct 21, 2010, at 8:22 AM, Pat Thoyts wrote:
quoted
+	while {[regexp -indices -start $start "\033\\\[(\\d+)?m" $line match code]} {
Git currently doesn't emit combined escapes (e.g. \e[0;31m to reset and then turn on red text), but I can imagine it being enhanced to do this in the future. I would recommend handling it here if you can.
In fact that can be configured even now:
 % git config color.diff.whitespace "bold white bold cyan"
 % git diff --color | cat.exe --show-all
 ^[[1;37;46m+^[[m$
so thanks for the warning.
-- 
Pat Thoyts                            http://www.patthoyts.tk/
PGP fingerprint 2C 6E 98 07 2C 59 C8 97  10 CE 11 E6 04 E0 B9 DD
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help