Re: How to restrict command “git grep” to the first search result per file?
- From
- Markus Elfring <markus.elfring@web.de>
- Date
- Jul 6, 2025, 12:20 UTC
- Message-ID
- <b1753222-0043-4b1d-acd4-9afac0197c65@web.de>
- 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