Skip to content

grep: add result grouping, ack style

René Scharfe git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3grep: fix coloring of hunk marks between filesbuiltin/grep.c grep.c t/t7810-grep.sh+58 -100 replies
2/3grep: add --breakDocumentation/git-grep.txt builtin/grep.c grep.c +2 more+40 -30 replies
3/3grep: add --headingDocumentation/git-grep.txt builtin/grep.c grep.c +2 more+49 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] grep: add result grouping, ack style

ack (http://betterthangrep.com/) has a nice way to display results from multiple files by writing the file name once at the top instead of at the start of each matching line. This short series starts with a fix that is needed anyway and then adds the basic options that enable this display mode.

[PATCH 1/3] grep: fix coloring of hunk marks between files [PATCH 2/3] grep: add --break
[PATCH 3/3] grep: add --heading

 Documentation/git-grep.txt |    7 +++
 builtin/grep.c             |   29 ++++++++++----
 grep.c                     |   26 ++++++++++--
 grep.h                     |    2 +
 t/t7810-grep.sh            |   95 ++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 146 insertions(+), 13 deletions(-)