From: Andreas Schwab <schwab@linux-m68k.org>
To: Markus Elfring <Markus.Elfring@web.de>
Cc: git@vger.kernel.org
Subject: Re: How to restrict command “git grep” to the first search result per file?
Date: Sun, 06 Jul 2025 13:42:19 +0200 [thread overview]
Message-ID: <87wm8lo89w.fsf@igel.home> (raw)
In-Reply-To: <fb74577d-f7b8-4fde-ab5a-5283e70b8258@web.de> (Markus Elfring's message of "Sun, 6 Jul 2025 13:28:47 +0200")
On Jul 06 2025, Markus Elfring wrote:
> File contents can be searched also by the means of the program call “git grep”.
> Would you become interested to find specified items only once in each file
> (instead of multiple times)?
Does "git grep -l" suit your needs?
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
next prev parent reply other threads:[~2025-07-06 11:42 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 [this message]
2025-07-06 12:20 ` Markus Elfring
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=87wm8lo89w.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=Markus.Elfring@web.de \
--cc=git@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.