Delphi IDE 的 diff 或 patch 添加器是,即如果有人制作了 patch 并且我想自动将其添加到我的项目中?

发布于 2024-07-27 12:56:51 字数 92 浏览 8 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

别理我 2024-08-03 12:56:51

如果您使用版本控制系统签入文件,则可以使用版本控制工具来保持存储差异和合并的能力。 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. :)

剩一世无双 2024-08-03 12:56:51

Winmerge
它是一个优秀的源文件差异工具,无需使用 Delphi。
布里

Winmerge
It's an excellent differencing tool for source files without needing Delphi.
Bri

偏闹i 2024-08-03 12:56:51

使用版本控制系统,例如 mercurial

Use a version control system, like mercurial.

最美的太阳 2024-08-03 12:56:51

我认为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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文