beyond compare 与git diff整合

在UserName/bin/目录下新建一个git-diff-wrapper.sh

#!/bin/sh

# diff is called by git with 7 parameters:
# path old-file old-hex old-mode new-file new-hex new-mode

"bcompare" "$2" "$5" | cat

 

在UserName/目录下修改.gitconfig文件

[user]
name = wanqi
email = wanqi@hymost.com
[color]
ui = auto
[diff]
external = /home/UserName/bin/git-diff-wrapper.sh

 

最后就git diff就ok了。

 

 

posted @ 2012-05-04 09:50  wanqi  阅读(2961)  评论(0编辑  收藏  举报