From: Markus Elfring <Markus.Elfring@web.de>
To: Andreas Schwab <schwab@linux-m68k.org>, git@vger.kernel.org
Subject: Re: How to restrict command “git grep” to the first search result per file?
Date: Sun, 6 Jul 2025 14:20:06 +0200 [thread overview]
Message-ID: <b1753222-0043-4b1d-acd4-9afac0197c65@web.de> (raw)
In-Reply-To: <87wm8lo89w.fsf@igel.home>
>> Would you become interested to find specified items only once in each file
>> (instead of multiple times)?
>
> Does "git grep -l" suit your needs?
I imagine that it can occasionally matter see a bit more context for a search result
besides a file name.
Regards,
Markus
next prev parent reply other threads:[~2025-07-06 12:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-06 11:28 How to restrict command “git grep” to the first search result per file? Markus Elfring
2025-07-06 11:42 ` Andreas Schwab
2025-07-06 12:20 ` Markus Elfring [this message]
2025-07-08 5:30 ` Markus Elfring
2025-07-06 13:27 ` Phillip Wood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b1753222-0043-4b1d-acd4-9afac0197c65@web.de \
--to=markus.elfring@web.de \
--cc=git@vger.kernel.org \
--cc=schwab@linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox