git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
René Scharfe <rene.scharfe@lsrfire.ath.cx>
Date
Jun 5, 2011, 15:21 UTC
Message-ID
<4DEB9F07.1070006@lsrfire.ath.cx>

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(-)
Next: René Scharfe
Message 1 of 5 in “grep: add result grouping, ack style”
  1. 0/3 grep: add result grouping, ack styleRené Scharfe, Jun 5, 2011
  2. 1/3 grep: fix coloring of hunk marks between filesRené Scharfe, Jun 5, 2011
  3. 2/3 grep: add --breakRené Scharfe, Jun 5, 2011
  4. 3/3 grep: add --headingRené Scharfe, Jun 5, 2011
  5. Michał KiedrowiczJun 6, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.