author | Bo Yang <struggleyb.nku@gmail.com> | |
Thu, 8 Jul 2010 15:12:34 +0000 (23:12 +0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 9 Jul 2010 01:09:14 +0000 (18:09 -0700) | ||
commit | e13f38a33ed181b937c85fd9adf6bce755f69d00 | |
tree | 92a46f98814ad15aaf8aa1e0b6f23c35bb8f637f | tree | snapshot |
parent | e8344e866655cfae1f870d7e8d5046c1bdf08adf | commit | diff |
diff.c: fix a graph output bug
When --graph is in effect, the line-prefix typically has colored graph
line segments and ends with reset. The color sequence "set" given to
this function is for showing the metainfo part of the patch text and
(1) it should not be applied to the graph lines, and (2) it will be
reset at the end of line_prefix so it won't be in effect anyway.
Signed-off-by: Bo Yang <struggleyb.nku@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When --graph is in effect, the line-prefix typically has colored graph
line segments and ends with reset. The color sequence "set" given to
this function is for showing the metainfo part of the patch text and
(1) it should not be applied to the graph lines, and (2) it will be
reset at the end of line_prefix so it won't be in effect anyway.
Signed-off-by: Bo Yang <struggleyb.nku@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c | diff | blob | history |