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.