本文介绍了仅复制差异(kdiff,winmerge,任何差异之类的工具)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以仅复制两个文件的差异?就像在winmerge中一样,但是,我找不到此选项
就像在此屏幕上一样,我只想复制黄色部分。当然,我可以手动执行此操作,但是在大文件中,它不是太有趣:-)
解决方案
您将获得(例如)文件
4,8c4,8
< HELLO WORLD
< HELLO WORLD
< HELLO WORLD
< HELLO WORLD
< HELLO WORLD
---
>
>
>
>
>
Is there possibility of copy ONLY difference of two files? Like in winmerge, but, I can't find this option
Just like on this screen- i want to copy only 'yellow part' . Of course I can do that manually, but in big file it's not too funny :-)
解决方案
WinMerge has a built-in and simple way to generate such "diff only" files, that they called "patches".
Click on "Tool", then on "Generate Patch...", and enter where you want to store the result:
You will obtain (for your example) the file
4,8c4,8
< HELLO WORLD
< HELLO WORLD
< HELLO WORLD
< HELLO WORLD
< HELLO WORLD
---
>
>
>
>
>
That uses the standard, compact way of representing diff and is easy to manipulate.
这篇关于仅复制差异(kdiff,winmerge,任何差异之类的工具)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!