如何防止CVS转换行结尾?
和许多其他人一样,我们也遇到了 CVS 的行尾问题。然而,与大多数问题不同,我们的问题恰恰相反。
有没有办法强制 CVS 不将行从 /n 转换为 CR/LF。即使我签出到 Windows 机器,我也希望行结尾保持 Unix 格式。这可能吗?
问题:行结尾的转换导致校验发生变化,这是一个问题,因为很难比较两个可交付成果的相等性(它们无法以任何其他方式进行审核)。
从 CVS 迁移到 SVN 不是一个选择(不是因为缺乏尝试)
Like many other people we're having line ending issues with CVS. However, unlike most our problem is the opposite.
Is there a way to force CVS to not convert lines from /n to CR/LF. I would like the line endings to remain in the Unix format even if I checkout to a Windows machine. Is that even possible?
The problem: the conversion of the line endings is causing checkums to change, which is an issue because then it is hard to compare the equality of two deliverables (they are not auditable in any other way).
Moving from CVS to SVN is not an option (not from lack of trying)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
-kb
将文件标记为二进制文件,CVS 不会破坏行结尾。Tag the files as binary with
-kb
and CVS won't mangle line endings.