svn diff版本如何忽略空格

  • Post author:
  • Post category:其他


最近才了解并开始使用svn ,其实和

cvs

的操作还是略有一些差别的。cvs其实很多功能是rcs和其他一些系统命令的组合;svn中的diff 如何忽略空格,就不像cvs diff -b一样能忽略空格来比较文件的差别。 而svn help说的:

svn diff

-x

[–extensions] arg : Default: ‘-u’. When Subversion is invoking an

external diff program, ARG is simply passed along

to the program. But when Subversion is using its

default internal diff implementation, or when

Subversion is displaying blame annotations, ARG

could be any of the following:

-u (–unified):

Output 3 lines of unified context.

-b (–ignore-space-change):

Ignore changes in the amount of white space.

-w (–ignore-all-space):

Ignore all white space.

–ignore-eol-style:

Ignore changes in EOL style



版权声明:本文为chedong原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。