opendiff - Mac下的diff工具

By admin, 31 八月, 2017

opendiff会弹出一个FileMerge的图形化窗口。

如果想svn diff中自动调用opendiff,可在~/.subversion/config里加一行

diff-cmd = /usr/local/bin/svn-diffwrap.sh

文件/usr/local/bin/svn-diffwrap.sh的内容如下:

#!/bin/sh

/usr/bin/opendiff ${6} ${7}

这样,在项目目录里运行svn diff,就会以图形化的界面显示所有本地修改差异。在提交代码前运行一下svn diff有利于减少错误。

opendiff sample

评论

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
请输入"Drupal10"