From: Linus Torvalds Date: Sat, 24 Sep 2005 00:43:20 GMT Subject: Re: git 0.99.7b doesn't build on Cygwin Message-ID: In-Reply-To: On Fri, 23 Sep 2005, Linus Torvalds wrote: > > Davide, maybe I'm being stupid, but I'm thinking that it might be possible > to generate a -u3 diff by basically walking the xdiff file in a linear > fashion: if the edits are in strictly ascending order Ahh, no. Looking at the xdiff format, the edits are strictly ascending in the destination, but they may take stuff from the source in any order, so it's not like you can generate a diff from it by just walking it. Oh, well. I guess we're better off just using the external diff command, even if it is slower to execve an external diff. The GNU diff sources are hard enough to read that I don't think we want to try to merge the unified diff generation from there. Linus