简体   繁体   中英

Why CVS to GIT migration files having difference after migration?

I am migrating CVS repository to GIT using cvs2git tool but am getting minor changes on few files after CVS to GIT migration. Is this ok ? OR should I need to migrate properly?

  [root@test myproject-cvs2git]# git diff  -w resource/config/test.policy /testcvs/common/resource/config/test.policy
diff --git a/resource/config/test.policy b/testcvs/common/resource/config/test.policy
index 36fbf3a..c402a95 100755
--- a/resource/config/test.policy
+++ b/testcvs/myproject/resource/config/test.policy
@@ -9,7 +9,7 @@
 //
 // * Read access to the document root directory
 //
-// $Id$
+// $Id: test.policy,v 1.1.1.1 2011/06/01 11:25:59 User Exp $
 // ============================================================================

It has to do with CVS keyword expansion . Learn about keyword expansion . Git doesn't do it. (Some may say that git supports it in a limited way, but that's being very generous. It basically doesn't.)

See this answer cvs2svn changes 'date' string in source codes

cvs2git uses cvs2svn as a first step.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM