Re: Implementing diff, was Re: git 0.99.7b doesn't build on Cygwin
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Sep 25, 2005, 17:00 UTC
- Message-ID
- <Pine.LNX.4.58.0509250959540.3308@g5.osdl.org>
- In-Reply-To
- <Pine.LNX.4.63.0509250854570.22725@localhost.localdomain>
On Sun, 25 Sep 2005, Davide Libenzi wrote:
Show 5 quoted lines
> > 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