简体   繁体   English

为什么从CVS到GIT的迁移文件在迁移后会有差异?

[英]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. 我正在使用cvs2git工具将CVS存储库迁移到GIT,但是在将CVS迁移到GIT之后,对几个文件进行了微小的更改。 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 . 它与CVS keyword expansion Learn about keyword expansion . 了解有关keyword expansion Git doesn't do it. Git不这样做。 (Some may say that git supports it in a limited way, but that's being very generous. It basically doesn't.) (有些人可能会说git以有限的方式支持它,但这是非常慷慨的。它基本上不是。)

See this answer cvs2svn changes 'date' string in source codes 查看此答案cvs2svn更改源代码中的“日期”字符串

cvs2git uses cvs2svn as a first step. cvs2git将cvs2svn用作第一步。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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