Migrating from Subversion to Git using svn2git (which internally uses git-svn) I’d like to know how I can find a specific revision commit.
It is quite common to have issues tracker to have comments like:
“Fixed in r12345”.
Given this, I’d like to be able, for example, to extract the diff corresponding to r12345.
Thanks in advance.
Regards
Given the revision number, you can find the Git SHA with
I don’t know if there’s a “one-shot” way to get the commit or anything, but you can write something like
Update: note that you can also grab the commit message with
Update again: note that
find-revalso works in reverse:returns the SVN commit number.