Johan Corveleyn wrote on Sat, Oct 09, 2010 at 14:21:09 +0200: > (side-note: I considered first doing suffix scanning, then prefix > scanning, so I could reuse the buffers/pointers from diff_baton all > the time, and still have everything pointing correctly after > eliminating prefix/suffix. But that could give vastly different > results in some cases, for instance when original file is entirely > identical to both the prefix and the suffix of the modified file. So I > decided it's best to stick with first prefix, then suffix).
What Hyrum said. How common /is/ this case? And, anyway, in that case both "everything was appended" and "everything was prepended" are equally legitimate diffs.