参考地址:http://icodeit.org/2015/02/make-a-colorful-svn-diff/
在MAC下,使用brew来安装命令行工具
$brew install colordiff //安装colordiff
$svn diff | colordiff //将svn生成的diff格式高亮显示出来
(每次重新打开iterm需要重新配置)
所以需要修改svn配置环境
$vim ~/.subversion/config //编辑
在这行下# diff-cmd = diff_program (diff, gdiff, etc.)添加
$diff-cmd = /usr/local/bin/colordiff //(这里需要colordiff的完整路径)
网友评论