From: Nikolaus Rath <Nikolaus@rath.org>
To: git@vger.kernel.org
Subject: Most recent revision that contains a string
Date: Sat, 20 Aug 2016 14:41:35 -0700 [thread overview]
Message-ID: <87d1l3ce40.fsf@thinkpad.rath.org> (raw)
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 the working copy. Or is there a
trick that I'm missing?
Thanks,
-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.«
next reply other threads:[~2016-08-20 21:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-20 21:41 Nikolaus Rath [this message]
2016-08-21 1:30 ` Most recent revision that contains a string Josh Triplett
2016-08-21 8:13 ` Andreas Schwab
2016-08-21 8:48 ` Josh Triplett
2016-08-21 2:46 ` Eric Wong
2016-08-22 18:06 ` Nikolaus Rath
2016-08-23 19:36 ` Junio C Hamano
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=87d1l3ce40.fsf@thinkpad.rath.org \
--to=nikolaus@rath.org \
--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.