xdi_diff: trim common trailing lines
commit913b45f51b151d8e29f86df67d3e10853d831470
authorJunio C Hamano <gitster@pobox.com>
Thu, 13 Dec 2007 22:24:18 +0000 (13 14:24 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Dec 2007 07:04:26 +0000 (13 23:04 -0800)
tree8c081b6a2a505d3c202a200c71aab055d4f24e4f
parentc279d7e9869740a6d64b0d1d70f7968af68d2071
xdi_diff: trim common trailing lines

This implements earlier Linus's optimization to trim common lines at the
end before passing them down to low level xdiff interface for all of our
xdiff users.

We could later enhance this to also trim common leading lines, but that
would need tweaking the output function to add the number of lines
trimmed at the beginning to line numbers that appear in the hunk
headers.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff-interface.c