login
Header Space

 
 

How can I figure out what commits relate to a given diff?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Thursday, May 22, 2008 - 11:21 am

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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
How can I figure out what commits relate to a given diff?, Steven A. Falco, (Thu May 22, 11:21 am)
perforce import: git-p4 memory usage, Luke Diamand, (Fri May 23, 6:07 am)
Re: perforce import: git-p4 memory usage, Logan Kennelly, (Fri May 23, 6:27 pm)
Re: perforce import: git-p4 memory usage, Andreas Ericsson, (Fri May 23, 7:25 am)
speck-geostationary