Re: Most recent revision that contains a string

2016-08-23 Thread Junio C Hamano
Nikolaus Rath writes: >> 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?

Re: Most recent revision that contains a string

2016-08-22 Thread Nikolaus Rath
On Aug 21 2016, Eric Wong wrote: > Nikolaus Rath 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

Re: Most recent revision that contains a string

2016-08-21 Thread Josh Triplett
On Sun, Aug 21, 2016 at 10:13:33AM +0200, Andreas Schwab wrote: > On Aug 20 2016, Josh Triplett wrote: > > If you want to find a change that introduces or removes a particular > > string, you could use "git log -S". That doesn't allow regexes, > > It does, actually, see --pickaxe-regex. Thanks;

Re: Most recent revision that contains a string

2016-08-21 Thread Andreas Schwab
On Aug 20 2016, Josh Triplett wrote: > If you want to find a change that introduces or removes a particular > string, you could use "git log -S". That doesn't allow regexes, It does, actually, see --pickaxe-regex. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 5

Re: Most recent revision that contains a string

2016-08-20 Thread Eric Wong
Nikolaus Rath 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

Re: Most recent revision that contains a string

2016-08-20 Thread Josh Triplett
On Sat, Aug 20, 2016 at 02:41:35PM -0700, Nikolaus Rath wrote: > Hello, > > 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 was hoping that "git grep" would

Most recent revision that contains a string

2016-08-20 Thread Nikolaus Rath
Hello, 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 was hoping that "git grep" would do this (like in Mercurial), but as far as I can tell it only greps through t