grep color enhancements
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 2 repliesIn review
- v15 patches 15 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | Add GIT_COLOR_BOLD_* and GIT_COLOR_BG_*builtin-grep.c color.h graph.c | +18 | 0 replies | |
| 2/3 | grep: Colorize filename, line number, and separatorDocumentation/ builtin-grep.c grep.c +1 more | +74 | 2 replies | |
| 3/3 | grep: Colorize selected, context, and function linesDocumentation/ builtin-grep.c grep.c +1 more | +27 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCHv2 0/3] grep color enhancements
This is a re-spin of the second half of Gmane 141186, "color enhancements, particularly for grep", which is currently in pu as 'ml/color-grep'. The following changes were made, all to the second patch:
* Fix the parsing of color.grep. The old code caused a segfault if this option was set, and it also disallowed setting this option without a value.
* Color the filename in --name-only output. I still don't like this, but I understand that makes the coloring more consistent. As Junio said, if there's no strong argument one way or the other, it's probably best to follow GNU's lead.
* Style changes: Remove the cast to int for "rm_eo - rm_so", put else on same line as curly brace, and remove an unnecessary variable assignment.
* Asciidoc fixes: Use ";;" instead of ":::" for nested lists, and un-indent the last sentence for color.grep.<slot>.
Mark Lodato (3):
Add GIT_COLOR_BOLD_* and GIT_COLOR_BG_*
grep: Colorize filename, line number, and separator
grep: Colorize selected, context, and function lines
Documentation/config.txt | 26 ++++++++++++++++-- builtin-grep.c | 38 +++++++++++++++++++++----- color.h | 11 +++++++ graph.c | 12 ++++---- grep.c | 66 ++++++++++++++++++++++++++++++---------------- grep.h | 6 ++++ 6 files changed, 119 insertions(+), 40 deletions(-)