linux - Linux 的可视化补丁工具

标签 linux user-interface diff patch

我有一个文件和一个补丁。我想直观地应用补丁,t.i.查看补丁提出的更改在上下文中的外观,进行一些更正,然后保存生成的文件。

什么工具可以做到这一点?

视觉差异工具(即融合、扩散、差异合并)都不能满足我的要求:它们不能处理补丁,它们只是合并整个文件。

最佳答案

我真的很喜欢 Kompare。它只是一个(非常好的)差异图形界面。

http://www.caffeinated.me.uk/kompare/

sudo apt-get install kompare

Creating and applying patches

Kompare is able to create a patch file which lists only the differences between two compared text files A and B. Further, Kompare can apply a patch file which was created this way to an original file A and, in this manner, recompute the contents of the corresponding file B. This is a comfortable utility for passing a corrected version of a file to a friend who already has an older version of the same file, because only the (relatively small) patch file has to be delivered and the receiver can generate the corrected file by applying the patch to the original file.

The patches created and applied by Kompare are compatible to patch files generated or applied by the command line interface diff utility, because Kompare is in fact merely a graphical front end to diff and the patches are created and applied by patch, which gets called by Kompare.

关于linux - Linux 的可视化补丁工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1879770/

相关文章:

linux - Selenium 测试用例在 Firefox 中有效,但在 Chrome 中无效 - Headless Setup

c++ - GCC __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535)

linux - 可以从 Qt 运行程序但不能从 konsole 运行它

mysql - 有效地将大约 20kb 的文本重新保存到 mysql

git - 告诉 git 跟随移动的内容(不仅仅是移动的文件)

Git diff 仅显示已修改的行

linux - 加入并处理来自 top 命令输出的两行

java - Gui 卡住在 while 循环中

java - 我需要两个相互影响的 JTextField

user-interface - N服务总线/CQRS : How to handle things in the userinterface?