User to user discussion and support for UltraEdit, UEStudio, UltraCompare, and other IDM applications.

Projects, workspaces, solutions, file management and CVS/SVN issues
2 posts Page 1 of 1
When I right click a file (UES 15) and choose git -> Merge with UltraCompare it does not work. Somehow the paths to the files are not translated correctly into command line parameters - see the attached images.

Image

Image

I'm guessing the .bat files were made for non Windows OS.
I've replaced $ with % in UEStudio\git\uc-difftool.bat and UEStudio\git\uc-mergetool.bat.
In UEStudio < v16.10 the batch file git\uc-difftool.bat in program files directory of UEStudio contains

Code: Select all
uc.exe -lt -t "$1" "$2" -title1 "REMOTE" -title2 "LOCAL"

and the batch file git\uc-mergetool.bat contains

Code: Select all
uc.exe -lt -3 "$1" "$2" "$3" -title1 "REMOTE" -title2 "BASE" -title3 "LOCAL"

This is right on running the batch files in Git bash environment, but not on running the batch file by Windows command interpreter.


In UEStudio v16.10 and v16.20 the batch file git\uc-difftool.bat in program files directory of UEStudio contains

Code: Select all
uc.exe -lt -t "%1" "%2" -title1 "REMOTE" -title2 "LOCAL"

and the batch file git\uc-mergetool.bat contains

Code: Select all
uc.exe -lt -3 "%1" "%2" "%3" -title1 "REMOTE" -title2 "BASE" -title3 "LOCAL"


That is better, but not 100% right as the file names are passed twice double quoted if passed to the batch file already enclosed in double quotes.

Best would be for git\uc-difftool.bat

Code: Select all
uc.exe -lt -t "%~1" "%~2" -title1 "REMOTE" -title2 "LOCAL"

and for git\uc-mergetool.bat

Code: Select all
uc.exe -lt -3 "%~1" "%~2" "%~3" -title1 "REMOTE" -title2 "BASE" -title3 "LOCAL"
Best regards from Austria
2 posts Page 1 of 1