0

Recently one of my Svn project migrated to git using svn2git, is it possible to maintain old revision number in migrated git repository?

venu
  • 2,971
  • 6
  • 40
  • 59
  • Do you mean as a comment or similar? – Jonathan Hall Mar 19 '18 at 10:35
  • if possible yes or just add svn revision to it's equivalent git revision number – venu Mar 19 '18 at 11:21
  • git revisions are SHA checksums--you can't set those to arbitrary values to match svn revisions. The best you're likely to get is to add the original SVN commit to a comment. But I have to wonder what value that would provide. – Jonathan Hall Mar 19 '18 at 11:23
  • Thanks @Flimzy how we can add SVN commit to a comment while migrating existing SVN to Git? – venu Mar 19 '18 at 11:27

1 Answers1

0

Use option -m/--metadata, See https://github.com/nirvdrum/svn2git#options-reference.

phd
  • 82,685
  • 13
  • 120
  • 165