[PATCH 0/5] color enhancements, particularly for grep
- From
Mark Lodato <lodatom@gmail.com>
- Date
- Feb 27, 2010, 04:57 UTC
- Message-ID
- <1267246670-19118-1-git-send-email-lodatom@gmail.com>
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(-)