git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How can I figure out what commits relate to a given diff?
@ 2008-05-22 15:21 Steven A. Falco
  2008-05-22 15:48 ` Miklos Vajna
  2008-05-22 16:04 ` Jeff King
  0 siblings, 2 replies; 7+ messages in thread
From: Steven A. Falco @ 2008-05-22 15:21 UTC (permalink / raw)
  To: git

I have a patch file, and I'd like to figure out which commits were used
to produce it.

For example, one of the diffs in the patch file begins with:

diff --git a/Makefile b/Makefile
index 9ceadaa..ad31bc6 100644

Is there a way to map a blob SHA1 to a commit?  In this example, I'd
like to map 9ceadaa and ad31bc6 to their commits.  It seems easy to go
the other way, seeing what is in a commit, but I've not been able to
find a method for going "backwards" from a blob to a commit.

    Thanks,
    Steve

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-05-23 22:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-22 15:21 How can I figure out what commits relate to a given diff? Steven A. Falco
2008-05-22 15:48 ` Miklos Vajna
2008-05-22 20:53   ` Steven A. Falco
2008-05-22 16:04 ` Jeff King
2008-05-23 10:07   ` perforce import: git-p4 memory usage, perforce import: git-p4 memory usage Luke Diamand
2008-05-23 11:25     ` Andreas Ericsson
2008-05-23 22:27     ` Logan Kennelly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).