How to compare revisions
When you need to compare the versions of the file, a convenient tool is the best solution. The ability to compare changes is especially helpful when you are trying to find the reason why something went wrong. Git Support in The Welkin Suite includes a built-in functionality for comparing revisions.
You can compare changes in the files in 2 ways:
- before commit — on the Changes tab right-click on the file you want to explore and select Compare.
- the branch history — open the details of a commit from the Branch History details panel, and double-click the file you want to explore in the Commit details panel.
Both these actions will open the diff view for comparing changes. By default, The Welkin Suite opens the built-in KDiff3 viewer. You can customize your merge tool in the Options Menu:
Main Menu ⇒ Tools ⇒ Options… ⇒ External tools ⇒ Merge tools.
The Compare feature is a suitable tool for visualizing the differences between the current version of the file and the version that you have selected.
All the changes between the versions are highlighted:
- a red background means that the content was deleted in the newer version,
- green highlighting means that the content was added in the most recent version.
However, you can always see this legend in the bottom of the Diff viewer. In addition, you can see a 'map' of the changes across the file right in the scrollbar.
All the options of the Compare tool also can be reached on the Compare Files toolbar.