Re: Most recent revision that contains a string
- From
- Eric Wong <e@80x24.org>
- Date
- Aug 21, 2016, 02:46 UTC
- Message-ID
- <20160821024647.GA19536@starla>
- In-Reply-To
- <87d1l3ce40.fsf@thinkpad.rath.org>
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.
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. Thanks.