在源文件上具有版本记录信息(例如历史记录日志和文件ID)是否有用? [英] Is it useful to have versioning information like history log and file ID on the source file?

查看:91
本文介绍了在源文件上具有版本记录信息(例如历史记录日志和文件ID)是否有用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道它们提供了快速参考,但是随着代码的增长,仅由于版本/历史更新,它们就可能导致数百个文件发生更改。

I know that they provide a quick reference, but as the code grows they can lead to hundreds of files changing just due to version/history updates.

/与我的其他问题有关:

This leads/relates to my other question: Is there a way to prevent code comments to be marked as changes in the diffs obtained from version control? (CVS/SVN)

推荐答案

在版本控件中保留版本/历史记录信息。就是这样。

Keep the version/history info in the version control. That's what it's good at.

源文件中的版本/历史记录信息仅对那些无法访问您的版本控制存储库的人有用。该场景证明您需要团队维护这些注释的努力的可能性和重要性如何?我个人认为这将为附带福利带来很多额外的工作。

Version/history info in the source file is only useful for people that read the source code without having access to your version control repository. How likely and how important is that scenario, to justify the effort you will require from your team to maintain these notes? My personal opinion is that this would add a lot of additional work for fringe benefits.

这篇关于在源文件上具有版本记录信息(例如历史记录日志和文件ID)是否有用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆