]> git.ipfire.org Git - thirdparty/git.git/commit
xdiff: don't waste time guessing the number of lines
authorEzekiel Newren <ezekielnewren@gmail.com>
Fri, 2 Jan 2026 18:52:17 +0000 (18:52 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 4 Jan 2026 02:44:51 +0000 (11:44 +0900)
commitdb8a50ca6b92fd8222b90d6873b9f7e3766f224a
tree395d9734b8877a722e263e53e547e56553f9ccc7
parentbcf8fd63453d9a988e14248b23260a8cf4a03f63
xdiff: don't waste time guessing the number of lines

All lines must be read anyway, so classify them after they're read in.
Also move the memset() into xdl_init_classifier().

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