Given a repository like this:
A--B--C--D--E--HEAD
I want to use git format-patch
to export only commit C
. What would be an easy way to specify this commit?
From what I can tell, git format-patch <sha1 of B> <sha1 of C>
would work, but that's pretty cumbersome (juggling with two hashes). Isn't there an easier way to specify this, something like "give me all commits immediately following B"?
I use Git 1.7.1 and would prefer solutions for this version; but if newer versions have substantial improvements in this area, this might be interesting as well.