标签:c style class blog code java
大致有两种方式:
1,在bashrc中添加如下脚本
1 svndiff() 2 { 3 svn diff "${@}" | colordiff 4 }
2,修改svn的配置文件
1 $ vim ~/.subversion/config 2 [helpers] 3 diff-cmd = colordiff
颜色配置,添加.colordiffrc 文件,可以做到和git color 一样的效果
1 $ vim ~/.colordiffrc 2 banner=no 3 color_patches=no 4 plain=off 5 newtext=darkgreen 6 oldtext=darkred 7 diffstuff=white 8 cvsstuff=darkyellow
以上都要依赖colordiff,安装
sudo apt-get install colordiff
标签:c style class blog code java
原文地址:http://www.cnblogs.com/mliudong/p/3770385.html