author | Junio C Hamano <gitster@pobox.com> | |
Tue, 15 Sep 2009 01:44:01 +0000 (18:44 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 15 Sep 2009 09:41:03 +0000 (02:41 -0700) | ||
commit | 7f7ee2ff2dfbb8435a4b46750f573ef0f7d0b853 | |
tree | 3a4753cd97ca8c8c5d8bb0fa2ed981d273ed608f | tree | snapshot |
parent | 018cff70462eb59779c96a383531c4440fb35b9c | commit | diff |
diff -B: colour whitespace errors
We used to send the old and new contents more or less straight out to the
output with only the original "old is red, new is green" colouring. Now
all the necessary support routines have been prepared, call them with a
line of data at a time from the output code and have them check and color
whitespace errors in exactly the same way as they are called from the low
level diff callback routines.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
We used to send the old and new contents more or less straight out to the
output with only the original "old is red, new is green" colouring. Now
all the necessary support routines have been prepared, call them with a
line of data at a time from the output code and have them check and color
whitespace errors in exactly the same way as they are called from the low
level diff callback routines.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c | diff | blob | history |