Thread (17 messages) 17 messages, 5 authors, 2016-06-15

[PATCH 0/5] color enhancements, particularly for grep

STALE3763d

From: Mark Lodato <hidden>
Date: 2016-06-15 22:48:22

The main purpose of this patch series is to add color to git grep a la
GNU grep.  The only change to the default is to colorize the separator
between filename, line number, and match (':', '-', or '=') and between
hunks ('--').  This improves readability immensely without being
distracting.  However, the filename, line number, function line (-p),
and non-matching text can also be colored, if desired.

The first three patches are each independent of any other patch, but
they seem like a good idea.

Mark Lodato (5):
  Allow explicit ANSI codes for colors
  Add GIT_COLOR_BOLD_* and GIT_COLOR_BG_*
  Remove reference to GREP_COLORS from documentation
  grep: Colorize filename, line number, and separator
  grep: Colorize selected, context, and function lines

 Documentation/config.txt |   32 +++++++++++++++++++---
 builtin-grep.c           |   42 +++++++++++++++++++++-------
 color.c                  |   16 +++++++++++
 color.h                  |   11 +++++++
 graph.c                  |   12 ++++----
 grep.c                   |   66 ++++++++++++++++++++++++++++++---------------
 grep.h                   |    6 ++++
 t/t4026-color.sh         |   18 ++++++++++++
 8 files changed, 159 insertions(+), 44 deletions(-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help