Code

Colorize 'commit' lines in log ui
authorJeff King <peff@peff.net>
Sun, 23 Jul 2006 09:24:18 +0000 (05:24 -0400)
committerJunio C Hamano <junkio@cox.net>
Mon, 24 Jul 2006 07:04:41 +0000 (00:04 -0700)
commitce43697379ad8ffcaf061a4709489728c1dbe911
tree74db6123dc3f7d8547436f27c5e07b2c2ce81b0d
parentcbd64afbb3b1ad5433585ac71d94bd0c63270e38
Colorize 'commit' lines in log ui

When paging through the output of git-whatchanged, the color cues help to
visually navigate within a diff. However, it is difficult to notice when a
new commit starts, because the commit and log are shown in the "normal"
color. This patch colorizes the 'commit' line, customizable through
diff.colors.commit and defaulting to yellow.

As a side effect, some of the diff color engine (slot enum, get_color) has
become accessible outside of diff.c.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff.c
diff.h
log-tree.c