linux - Linux 的可视化补丁工具

我有一个文件和一个补丁。我想直观地应用补丁,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.

https://stackoverflow.com/questions/1879770/

相关文章:

linux - 根据日期范围过滤日志文件条目

linux - 用于 ssh 的类似 teamviewer 的工具?

linux - 使用 find 和 -exec {},有没有办法计算总数?

linux - 通过 ssh 在远程服务器上执行命令

c - 合并多个 .so 共享库

c++ - 如何使用多个版本的 GCC

linux - 如何为 Linux、OS X、Windows 制作 Travis CI 测试包?

linux - 在Linux中使用空格设置环境变量

linux - 对一行的最后一个字段进行排序

c++ - 当父进程被杀死时,使用 fork() 创建的子进程是否会自动被杀死?