All four scripts rely on githelperfunction.sh to properly convert the path and set variables.
The scripts above take into account:
Conversion of cygwin paths to Windows path
Handle filenames with whitespace
Handle properly non-existing files. Sometimes a file doesn’t exist in one of the branches you are comparing and then git will provide /dev/null as filename for that one. These scripts take care of converting that to a proper empty file in Windows.
DiffMerge: Set the window title in DiffMerge to the filename. And set labels for each file window to LOCAL→FROM_VERSION, REMOTE→TO_VERSION and BASE→MERGED
WinMerge: Set the file labels to LOCAL→FROM_VERSION.filename and REMOTE→TO_VERSION.filename.
After storing those script and make them accessible from your $PATH then you need to tell git how to use them.
You can use the following commands to tell git about this wrappers: