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

Re: Most recent revision that contains a string

From
Nikolaus Rath <nikolaus@rath.org>
Date
Aug 22, 2016, 18:06 UTC
Message-ID
<871t1ghe5s.fsf@thinkpad.rath.org>
In-Reply-To
<20160821024647.GA19536@starla>
On Aug 21 2016, Eric Wong <e@80x24.org> wrote:
Show 11 quoted lines
> Nikolaus Rath <Nikolaus@rath.org> wrote:
>> What's the easiest way to find the most recent revision (of any file in
>> the repository, including those that have been deleted in the current
>> HEAD) that contains a given string?
>
> I normally do something like:
>
> 	git log -r --raw -p -SSTRING
> 	git log -r --raw -p -GREGEXP
>
> You can also add --diff-filter=D to filter only on deletes.
Great, thanks!
Show 7 quoted lines
> Btw, please don't set these headers on kernel.org lists:
>
> 	Mail-Copies-To: never
> 	Mail-Followup-To: git@vger.kernel.org
>
> Like any mail server, vger fails from time-to-time and
> reply-to-all prevents it from being a single point of failure.

Huh? If the list-server fails only I will receive the message so it's still lost for everyone else. But I am more than happy to take this little risk if it saves me from the nuisance of getting duplicate responses.

Best, -Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«
Previous: Eric WongNext: Junio C Hamano
Message 6 of 7 in “Most recent revision that contains a string”
  1. Nikolaus RathAug 20, 2016
  2. Josh TriplettAug 21, 2016
  3. Andreas SchwabAug 21, 2016
  4. Josh TriplettAug 21, 2016
  5. Eric WongAug 21, 2016
  6. Nikolaus RathAug 22, 2016
  7. Junio C HamanoAug 23, 2016

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.