Skip to content

chestozo/dmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published