Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure Araxis merge with Git Extensions

How to configure Araxis merge/diff with Git Extensions?

I am trying to configure Araxis merge tool with "Git Extensions", but found no help, all links or searches directs to Git only (using shell), Where as Git Extensions is GUI tool, it has an option (in Global Settings ) to configure different tools for merge and diff etc.

From difftool dropdown I select Araxis, it automatically selects the correct paths of installed locations

 C:/Program Files (x86)/Araxis/Araxis Merge/AraxisGitDiff.exe

From mergetool dropdown

C:/Program Files (x86)/Araxis/Araxis Merge/AraxisGitMerge.exe

However each of them has an extra textbox with difftool command and mergetool comand, I have tried following commands in them

AraxisGitDiff.exe $1 $2

Keeping in mind that above command will substitute 1 and 2 what ever is selected from Git Extensions, and when I right click on a file and sletect the option "Open with difftool" -> "A <-> B " nothing appears on the screen

Similalry making it

AraxisGitDiff.exe $LOCAL $REMOTE

does not work

I empty this filed I see following error.

---------------------------
Araxis Merge Command Line Compare Utility v7.0
---------------------------
Usage:

araxisgitdiff [/? | /h] <path> <old-file> <old-hex> <old-mode> <new-file> <new-hex> <new-mode>

---------------------------
OK   
---------------------------
like image 650
PHP Avenger Avatar asked Mar 04 '14 09:03

PHP Avenger


3 Answers

The settings I use are:

  • Mergetool - Araxis
  • Path to mergetool - C:\Program Files\Araxis\Araxis Merge\Compare.exe
  • Mergetool command - /merge /wait /a2 /3 "$LOCAL" "$BASE" "$REMOTE" "$MERGED"

  • Difftool - araxis

  • Path to difftool - C:\Program Files\Araxis\Araxis Merge\Compare.exe
  • Difftool command - LEAVE EMPTY

When merging, the left pane will be the local file and the right pane will be the remote file. The center pane contains the base file (or common ancestor) and you have to merge into this file/pane.

UPDATE - 2018-02-19

Seems that newer versions of GitExtensions may not work with the settings above. The changes below should fix any issues.

  • Mergetool - Araxis
  • Path to mergetool - "C:\Program Files\Araxis\Araxis Merge\Compare.exe"
  • Mergetool command - -merge -max -wait -a2 -3 "$LOCAL" "$BASE" "$REMOTE" "$MERGED"

  • Difftool - araxis

  • Path to difftool - "C:\Program Files\Araxis\Araxis Merge\Compare.exe"
  • Difftool command - -max -2 -wait "$LOCAL" "$REMOTE"

Note that there are now double quotes around the path to the tools.

like image 145
CodeNaked Avatar answered Nov 15 '22 10:11

CodeNaked


Based on Wade answer I finally added Araxis folder (containing Merge.exe) to PATH then used this in my .gitconfig :

[diff]
    tool = araxis
[difftool]
    prompt = false
[difftool "araxis"]
    cmd = merge $LOCAL $REMOTE
like image 40
Ssh-uunen Avatar answered Nov 15 '22 09:11

Ssh-uunen


The following steps have been tested with Git Extensions v2.47.3.

To use Araxis Merge for file comparison and file merging:

  • In the Git Extensions browser, select Settings from the Tools menu.

  • In the Settings window, select Global Settings from the tree on the left.

  • In the Mergetool drop-down field, select Araxis.

  • In the Path to mergetool field, enter the following:

    C:/Program Files/Araxis/Araxis Merge/Compare.exe

  • In the Difftool drop-down field, select araxis.

  • In the Path to difftool field, enter the following:

    C:/Program Files/Araxis/Araxis Merge/Compare.exe

: Source

like image 1
Duke79 Avatar answered Nov 15 '22 08:11

Duke79