author | Junio C Hamano <gitster@pobox.com> | |
Thu, 13 Dec 2007 22:24:18 +0000 (14:24 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 14 Dec 2007 07:04:26 +0000 (23:04 -0800) | ||
commit | 913b45f51b151d8e29f86df67d3e10853d831470 | |
tree | 8c081b6a2a505d3c202a200c71aab055d4f24e4f | tree | snapshot |
parent | c279d7e9869740a6d64b0d1d70f7968af68d2071 | commit | diff |
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>
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 | diff | blob | history |