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

Re: [PATCH] grep: add configuration variables for --heading

From
Eric Sunshine <sunshine@sunshineco.com>
Date
May 26, 2020, 13:40 UTC
Message-ID
<CAPig+cTkwUyyji19XyTBRvC=RjLNK_OipLJ-+6GTf8PWRfC8WA@mail.gmail.com>
In-Reply-To
<4WK2xPaKLXPbLE0jjY0rBR9M_BVt69rzJKBN17M0ily4VPYuMNC_a2kXsIKWR8y6lc7j58WpBmaIqdbJ1whnjonrfEWz7YE-WpdQqCu_lN0=@emersion.fr>
On Tue, May 26, 2020 at 4:37 AM Simon Ser <contact@emersion.fr> wrote:
Show 8 quoted lines
> There are already configuration variables for -n and --column. Add one
> for --heading, allowing users to customize the default behaviour.
>
> Signed-off-by: Simon Ser <contact@emersion.fr>
> ---
>  Documentation/git-grep.txt | 3 +++
>  grep.c                     | 5 +++++
>  2 files changed, 8 insertions(+)

To round this out, adding a test -- probably in t7810-grep.sh -- would be a good idea.

Previous: Simon SerNext: Simon Ser
Message 2 of 6 in “grep: add configuration variables for --heading”
  1. grep: add configuration variables for --headingSimon Ser, May 26, 2020
  2. Eric SunshineMay 26, 2020
  3. grep: add configuration variables for --headingSimon Ser, May 27, 2020
  4. Junio C HamanoMay 27, 2020
  5. Simon SerJun 8, 2020
  6. Phillip WoodJun 8, 2020

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.