files/git_bcdiff

13 lines
366 B
Bash
Executable File

#!/bin/bash
local_fname="$1"
remote_fname="$2"
merged_fname="$3"
bcompare "$local_fname" "$remote_fname" -title1="$merged_fname" -title2="$merged_fname" -leftreadonly &
# 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 0.5