adiff - wordwise diff

This tool is a replacement for GNU wdiff that provides the ability to generate context and unified diffs based on the wordwise diff. It's written in Perl instead of C, so it's both shorter and slower. It doesn't have as many options as wdiff, but it provides some others.

You can find the man-page here or you can generate it from the embedded pod in adiff.

Downloads

Filename Date Size MD5
adiff-1.4 11-Dec-2007 14:11 10.6K e9b710985a9d1831d366393515ff1b50
adiff-1.3 21-Jun-2007 04:38 10.1K 17aac1756d8233f9f50874e9922af009
adiff-1.2 15-Aug-2005 11:33 9.9K 7f802ef3f3cb638767f554dcac860e72

adiff with subversion

The main reason I wrote adiff was so I could get meaningful diff mails from subversion when Word documents are checked in. To make this happen, I tie together run-mailcap, antiword and adiff. Since it uses run-mailcap, the system should work for arbitrary binary files.

Regarding the files posted below:

  • The mailcap is suitable to be installed as the system /etc/mailcap. It relies on the external script "dumptext" which you can install in /usr/local/bin.
  • run-mailcap in most distributions (except Gentoo) can get into an infinite loop. The provided patch fixes the problem.
  • Finally you'll need an updated commit-email.pl and post-commit hook. For the former, you can use mine directly, just install it in /usr/local/bin. For the latter, you'll need to create one specifically for your site from the supplied /var/svn/hooks/post-commit.tmpl. I've included mine here for reference only.

Downloads

Filename Date Size MD5
commit-email-local.pl 28-Nov-2005 15:55 19.5K ec3a8404e98a712b9403882175c155b6
commit-email.pl.patch 28-Nov-2005 15:57 5.1K c5e6455cf6a55ed4fb6fd54d9d135b54
dumptext 21-Jun-2007 05:00 1.1K 6b53e7ab07e5a9d560e6231271ad151a
mailcap 21-Jun-2007 05:03 4.8K dd650774b87e8ce06cf6b776eafbdd4a
run-mailcap-breakrecursion.patch 15-Aug-2005 11:09 419  d0088d928007afcc0011634c7df6693c

This page was generated Tue Jan 29 07:57:03 2008.