Git Diff with Beyond Compare

前端 未结 17 2115
醉酒成梦
醉酒成梦 2020-11-30 16:39

I have succeeded in getting git to start Beyond Compare 3 as a diff tool however, when I do a diff, the file I am comparing against is not being loaded. Only the latest ver

17条回答
  •  被撕碎了的回忆
    2020-11-30 17:07

    Please notice you make a wrong path of $2. because you are under Cygwin but BC3 not, so you should specify a full path for it. such as "d:/cygwin$2"

    Please refer my git-diff-wrapper.sh here:

    $ cat ~/git-diff-wrapper.sh
    #!/bin/sh
    echo $2
    echo $5
    /cygdrive/c/Program\ Files\ \(x86\)/Beyond\ Compare\ 3/BCompare.exe "d:/programs/cygwin$2" "$5"
    

    Good luck.

提交回复
热议问题