Skip to contentSkip to conversation

svn revision id in git commit?

DISCUSSION Anand Kumria 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

I'm using git-svnimport with great success; generally when I do a merge from the subversion (via git-svnimport) I tag the revision number I merge up to.

It'd be very helpful if git-svnimport stored the revision number that caused a particular commit to be generated -- is this possible? Would this be a 'note' field in a git commit? Has anyone else done work on git-svnimport to store this?

If not, I'll probably give it a go shortly.

Thanks,
Anand

#1 lore raw

söndag 15 oktober 2006 18:59 skrev Anand Kumria:

Quoted 5 lines

Hi,

I'm using git-svnimport with great success; generally when I do a merge from the subversion (via git-svnimport) I tag the revision number I merge up to.

The -r flags adds the subversion revision to the commit message. It's in the man page.

BTW, you may want to look at git-svn if you are shadowing a subversion repo. It adds then subversion revision by default. Neither creates a tag though.

-- robin