SVN 中的补丁有什么用?
我猜它允许您“保存”合并过程,以便我可以为某些开源项目创建补丁,并提交补丁,这样他们就不必自己处理合并?
您何时以及如何在 SVN 中使用补丁?
I'm guessing it allows you to "save" a merge process so I could create a patch for some Open Source project, and submit a patch so they don't have to handle the merge themselves?
When and how would you use patches in SVN?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
补丁(svn 中的统一 diff 文件)用于各种情况:
补丁文件在其他情况下也很有用,但这些都是针对项目的。
如果不使用补丁文件,您必须完整发送所有修改过的文件,这通常会产生更大的 (zip) 文件。
当然,可以将补丁文件应用到已经有自己的修改的工作副本 - 如果您发送整个文件,这些本地修改将被覆盖。
patches (unified diff files in svn) are used for various situations:
There are other situations where patchfiles are useful, but those are most very specific to projects.
Without using patchfiles, you'd have to send all your modified files in whole, which usually results in a much bigger (zip) file.
And of course, it's possible to apply a patchfile to a working copy which already has its own modifications - if you would send whole files those local modifications would get overwritten.
补丁由无法直接访问 SVN 存储库的人员使用。 他们将其发送给 SVN 用户之一,他/她可能会也可能不会将其合并到 SVN 存储库。
Patches are used by people who don't have direct access for SVN repository. They send it to one of SVN users and he/she may or may not merge it to SVN repository.