/dmp

Diff tool based on google-diff-match-patch tool

Primary LanguageJavaScript

dmp

Diff tool based on google-diff-match-patch.
Also mentioned here on StackOverflow.
You have to have node.js installed in order to dmp to work.

The main motivation to write this tool was to see letter specific diff
for unicode symbols (cyrillic letters in particular).

Now it is possible:

.

Usage

./dmp file1 file2 [--by-words]

git integration

Edit your .gitconfig like so:

[pager]
    difftool = true
[diff]
    tool = dmp
[difftool "dmp"]
    cmd = ~/path/to/dmp \"$LOCAL\" \"$REMOTE\"
[alias]
    dd = difftool
    dc = difftool --cached
    sh = !"sh() { local c="$1"; c=${c:=HEAD}; git difftool $c~..$c; }; sh"

See letter specific diff with this git commands:

git dd # git diff --color-words=. analog
git dc # git diff --cached --color-words=. analog
git sh # git show --color-words=. analog