Make extdiff actually use cwdiff instead of wdiff
|Deletions are marked like this.||Additions are marked like this.|
|Line 14:||Line 14:|
|cmd.wdiff = wdiff|| # if cwdiff is in your path, otherwise set to wherever you've installed cwdiff
cmd.wdiff = cwdiff
Making a word difference using the ExtdiffExtension and GNU wdiff, somehow what git diff --color-words does.
Download cwdiff, a shell script, which wraps wdiff to support directories and colorizes the output.
Enable ExtdiffExtension (in ~/.hgrc):
[extensions] hgext.extdiff =
- Add wdiff command (in ~/.hgrc):
[extdiff] # if cwdiff is in your path, otherwise set to wherever you've installed cwdiff cmd.wdiff = cwdiff #add --no-color below, if you dislike colors! opts.wdiff = --diff --ab
$ hg wdiff