From: Linus Torvalds Date: Sun, 25 Sep 2005 17:00:58 GMT Subject: Re: Implementing diff, was Re: git 0.99.7b doesn't build on Cygwin Message-ID: In-Reply-To: On Sun, 25 Sep 2005, Davide Libenzi wrote: > > What you'd have to do, if you chose to use diffutils stuff, is to > transform the main() of diff in diff_main(), use setjmp/longjmp to capture > its exit()s, and make it use a proper allocator (if you want to avoid > leaks upon aborts). I'd love to use libxdiff instead since you say it can do it, but quite frankly, the man-page didn't much help me. Do you have an example of how to generate a uni-diff with it? Something that mortal men can read and say "oh"? Linus