Skip to content

Instantly share code, notes, and snippets.

@rakkang
Created December 29, 2015 09:23
Show Gist options
  • Save rakkang/72d00fc913112713ccef to your computer and use it in GitHub Desktop.
Save rakkang/72d00fc913112713ccef to your computer and use it in GitHub Desktop.
#!/bin/sh
# 配置你喜欢的diff程序路径
DIFF="vimdiff"
# SVN diff命令会传入两个文件的参数
LEFT=${6}
RIGHT=${7}
# 拼接成diff命令所需要的命令格式
$DIFF $LEFT $RIGHT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment