

WINMERGE TOOL PATCH
In the bottom right corner choose Patch viewing mode (click radio-button), right-click on some of the files there, then choose External diff.ĥ. Now you should be able to invoke WinMerge from within Gitk. In pop-up dialog window choose the file from step 2 and click Open. In the dialog window find the External diff tool option. Replace the path at the last line of script to where you installed WinMerge if necessary.ģ. This script maps arguments of external tool call to WinMerge’s command-line syntax and sets some additional options. "C:\Program Files (x86)\WinMerge\WinMergeU.exe" /e /u /x /wl /wr /dl "Base" /dr "New" %1 %2 # /dr specifies a description in the right side title bar, just like /dl. # /dl specifies a description in the left side title bar, overriding the default folder or filename text Use this when you don't want to change right side items in the compare. Use this when you don't want to change left side items in the compare. # /x closes WinMerge (after displaying an information dialog) when you start a comparison of identical files # /u prevents WinMerge from adding either path (left or right) to the Most Recently Used (MRU) list # /e enables you to close WinMerge with a single Esc key press.
WINMERGE TOOL CODE
Create a file named git-winmerge.bat in some directory with such code in it:
WINMERGE TOOL INSTALL
Install (or make sure you have installed) msysGit and WinMerge.Ģ. WinMerge is the utility to compare two text files side-by-side with convenient coloring of differences and navigation through them (as of 2.14 it only works on Windows). This will happen because WinMerge doesn't know what you want to compare until you have selected a file on both the local and remove sides. First, you may notice that the WinMerge button is greyed out at times. But this functionality is not properly set up in msysGit (aka Git for Windows) out-of-the-box (as of 1.9.5). You can do this with almost any tool that accepts command line parameters.

Gitk has a feature allowing to view the differences between two files in repository in an external application. Gitk is the utility to view commit history of a Git repository.īut comparing files in this tool (on the bottom of the picture above) is a pain, mainly because it only shows changes as small extracts, hiding the context of the patch. These are installed with official distribution of Git. I still prefer working most time in tools called git gui and gitk which lie between powerful command-line tools and eye-candy GUIs like TortoiseGit and SourceTree.

I use Git version control system frequently, and tend to learn some new tricks and practices of using it.
