threads / discuss / 5931

svn revision id in git commit?

Subject: svn revision id in git commit?

## tl;dr

2 messages between Oct 15, 2006 and Oct 15, 2006.

replies: 1people: 2as markdown or json

Anand Kumria· Oct 15, 2006, 16:59 UTC · lore
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

Robin Rosenberg· Oct 15, 2006, 20:25 UTC · re: Anand Kumria · lore

Re: svn revision id in git commit?

söndag 15 oktober 2006 18:59 skrev Anand Kumria:
Show 5 quoted 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

← back to recent threads