Differences between revisions 2 and 3
Revision 2 as of 2010-08-20 14:51:24
Size: 545
Comment:
Revision 3 as of 2010-08-25 13:08:53
Size: 593
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Making a word difference using the ExtdiffExtension and GNU wdiff. Making a word difference using the ExtdiffExtension and GNU wdiff, somehow what {{{git diff --color-words}}} does.

Making a word difference using the ExtdiffExtension and GNU wdiff, somehow what git diff --color-words does.

Steps:

  1. Download cwdiff, a shell script, which wraps wdiff to support directories and colorizes the output.

  2. Enable ExtdiffExtension (in ~/.hgrc):

  [extensions]
  hgext.extdiff =
  1. Add wdiff command (in ~/.hgrc):

  [extdiff]
  cmd.wdiff = wdiff
  #add --no-color below, if you dislike colors!
  opts.wdiff = --diff --ab
  1. Run

$ hg wdiff

WordDiff (last edited 2018-08-02 16:05:33 by AntonShestakov)