]> git.ipfire.org Git - thirdparty/git.git/commit
xdiff: remove dependence on xdlclassifier from xdl_cleanup_records()
authorEzekiel Newren <ezekielnewren@gmail.com>
Fri, 2 Jan 2026 18:52:23 +0000 (18:52 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 4 Jan 2026 02:44:52 +0000 (11:44 +0900)
commitefd314b8e8526fec7df9e5f8a7a2ebd4d6c423d2
tree69664f5e07e8c90fe1fd99d5b47df03ac473bab7
parentfee078ad4ced742f436a86dfcf8d10820fbe7b2e
xdiff: remove dependence on xdlclassifier from xdl_cleanup_records()

Disentangle xdl_cleanup_records() from the classifier so that it can be
moved from xprepare.c into xdiffi.c.

The classic diff is the only algorithm that needs to count the number
of times each line occurs in each file. Make xdl_cleanup_records()
count the number of lines instead of the classifier so it won't slow
down patience or histogram.

Signed-off-by: Ezekiel Newren <ezekielnewren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff/xprepare.c
xdiff/xtypes.h