files/git_bc3diff

15 lines
450 B
Bash
Executable File

#!/bin/bash
if [[ $(uname) =~ CYGWIN ]]; then
path1=$(cygpath -w "$1")
path2=$(cygpath -w "$2")
'/cygdrive/c/apps/Beyond Compare 3/BCompare.exe' "$path1" "$path2" /title1=Base /leftreadonly &
else
bcompare "$1" "$2" -title1=Base -leftreadonly &
fi
# git will remove the temporary file as soon as the difftool command exits;
# sleep to give Beyond Compare a chance to load the file and display the diff
# before the file is removed.
sleep 1