如何忽略 svn 中的 eol 更改和所有空白? [英] How can I ignore eol changes and all white space in svn?
本文介绍了如何忽略 svn 中的 eol 更改和所有空白?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
结合 svn diff --ignore-eol-style 和 --ignore-all-space 不起作用:
Combining svn diff --ignore-eol-style and --ignore-all-space is not working:
$ svn diff -x -w --ignore-eol-style -r 1143:1177 somefile
svn: invalid option: --ignore-eol-style
还有,
$ svn diff -x --ignore-eol-style -x --ignore-all-space -r 1143:1177 somefile
只执行最后一个选项:ignore-all-space
Only executes the last option: ignore-all-space
以前有人处理过这个吗?
Anybody dealt with this before?
推荐答案
svn
命令似乎只支持 one -x
选项.这意味着,您必须/可以将所有选项组合成一个参数:
The svn
command seems to honour only one -x
option. This means, you must/can combine all options into one argument:
svn diff -x "-w --ignore-eol-style"
我没有测试这是否也适用于外部差异工具.
I did not test whether this is also true for external diff-tools.
这篇关于如何忽略 svn 中的 eol 更改和所有空白?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文