Delphi IDE 的 diff 或 patch 添加器是,即如果有人制作了 patch 并且我想自动将其添加到我的项目中?
Delphi 有可用的 DIFF 插件吗? 我需要简单地将差异或补丁文件添加到我的项目中,替换补丁中更改的项目代码,但也保留旧代码,以防在没有补丁的情况下回退到旧文件。
Is there DIFF plugin availaple for Delphi? I need simple add diff or patch file to my project, replaceing the porject code, that was changed in the patch, but keeping also the old one incase of falling back to old file without the patch.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您使用版本控制系统签入文件,则可以使用版本控制工具来保持存储差异和合并的能力。 SVN 以及 TortoiseSVN 似乎是一种非常流行(且开源)的方法。 有大量集成到 IDE 的示例 。
如果您是唯一处理该文件的人,那么 IDE 中的历史记录选项卡也能正常工作。 如果是这种情况,我会将历史记录设置得相当高,并使用 GExperts 项目备份向导来创建“检查点”备份。
我强烈推荐的一个很棒的基于 Windows 的差异/合并实用程序是 Beyond Compare,它也恰好是用德尔福。 :)
If you use a version control system to check the files into, you can use the version control tools to maintain the ability to store differences and merge. SVN along with TortoiseSVN seems to be a very popular (and open source) method of doing just this. There are plenty of examples of integration into the IDE.
The history tab in the IDE works well too, if you are the only one working on the file. If this is the case I would set the history rather high, and use the GExperts project backup wizard to make "checkpoint" backups.
A fantastic windows based diff/merge utility that I strongly recommend is Beyond Compare, which also happens to be written in Delphi. :)
Winmerge
它是一个优秀的源文件差异工具,无需使用 Delphi。
布里
Winmerge
It's an excellent differencing tool for source files without needing Delphi.
Bri
使用版本控制系统,例如 mercurial。
Use a version control system, like mercurial.
我认为OP正在询问诸如GNUWin工具中的diff/patch utils之类的东西。
您获得一个补丁文件并将其应用到代码库。
I think the OP is asking something like the diff/patch utils from GNUWin tools.
You get a patch file and apply it to the code base.