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


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

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

  extdiff =
  1. Add wdiff command (in ~/.hgrc):

  # 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
  1. Run

$ hg wdiff

WordDiff (last edited 2015-03-17 04:56:14 by ChristophJunghans)