How to Integrate the File Comparison Tool with SourceTreeHistory | Edit
The file comparison tool can be integrated with SourceTree so that you can use it to compare
changes. The advantages of doing this include:
- The Oxygen Compare Files tool presents the files side-by-side and makes it much easier to determine real changes.
- The Oxygen Compare Files tool includes XML comparison algorithms.
- The Oxygen Compare Files tool includes various options for configuring the comparison.
- The Oxygen Compare Files tool allows you to navigate through changes.
To integrate the Compare Files tool with SourceTree, follow this procedure, depending on your operating system:
- Windows
-
- In SourceTree, go to .
- Go to the Diff tab.
- In the External Diff/Merge section, configure the settings
as follows:
- External Diff Tool - Select Custom.
- Diff Command - Enter the path of the Oxygen diffFile.exe file (for example: c:\Programs\Oxygen XML Editor 19\diffFiles.exe).
- Arguments - Enter -ext $REMOTE $LOCAL $LOCAL.
- Merge Tool - Select Custom.
- Diff Command - Enter the path of the Oxygen diffFile.exe file (for example: c:\Programs\Oxygen XML Editor 19\diffFiles.exe).
- Arguments - Enter -ext $LOCAL $REMOTE $BASE $MERGED.
- Click OK.
Result: In SourceTree, you can now compare file changes with the Oxygen Compare Files tool by simply selecting External Diff from the contextual menu, Actions menu, or Ctrl+D.
- Mac OS X
-
- In SourceTree, go to .
- Go to the Diff tab.
- In the External Diff/Merge section, configure the settings
as follows:
- External Diff Tool - Select Custom.
- Diff Command - Enter a command line argument to launch the Oxygen diffFiles.sh file (for example: sh "/Applications/Oxygen XML Editor/diffFiles.sh").
- Arguments - Enter -ext $REMOTE $LOCAL $LOCAL.
- Merge Tool - Select Custom.
- Diff Command - Enter a command line argument to launch the Oxygen diffFiles.sh file (for example: sh "/Applications/Oxygen XML Editor/diffFiles.sh").
- Arguments - Enter -ext $LOCAL $REMOTE $BASE $MERGED.
- Close the preferences dialog box.
Result: In SourceTree, you can now compare file changes with the Oxygen Compare Files tool by simply selecting External Diff from the contextual menu or Actions menu.