工具剥离 diff 中的空格
在 hg 中提交创建 diff 文件。
但是,我希望能够查看这些差异的因式分解版本,忽略所有空白。
我在两个修订版之间有很多差异文件(905 个文件),我需要这样一个工具来理解代码的更改。
基本上,该工具会打开一个 diff 文件(或补丁),重建旧文件,然后将其与当前文件进行比较,忽略空格,最后在 GUI 中使用并排代码以最佳方式向我显示比较结果。
有这样的工具吗?
顺便说一句,我使用的是 Debian 6。
谢谢
commiting in hg create diff files.
But, i would like to be able to look at a factorized version of these diff, ignoring all white-spaces.
I have a lot a diff files (905 files) between two revisions, and i need such a tool to understand the changes of code.
Basically, the tool would open a diff file (or patch), reconstruct the old file then compare it with the current one ignoring white-spaces and finally optimaly show the comparison to me in a GUI with side-by-side code.
Is there such a tool?
By the way, I am on Debian 6.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您知道 kdiff3 以及用于直观比较差异的类似工具,对吧?您还可以使用 Mercurial extdiff 扩展 将 kdiff3 和其他此类工具的使用集成到善变的。 Kdiff3 有一个“显示空白”按钮(它是一个白色方块),您可以打开和关闭,但我不知道这就是您想要的。
Tortoisehg 是查看差异的另一个选项。
Mercurial 的 diff 有一个 -w 命令。看
You are aware of kdiff3, and similar tools for visually comparing diffs, right? You can also use the Mercurial extdiff extension to integrate usage of kdiff3 and other such tools into mercurial. Kdiff3 has a 'show white space' button (it's a white square) you can toggle on and off, but I don't know it that is what you want.
Tortoisehg is another option for viewing diffs.
Mercurial's diff has a -w command. See