Files
git/builtin
Jeff King 83c4d38017 merge-file: enforce MAX_XDIFF_SIZE on incoming files
The previous commit enforces MAX_XDIFF_SIZE at the
interfaces to xdiff: xdi_diff (which calls xdl_diff) and
ll_xdl_merge (which calls xdl_merge).

But we have another direct call to xdl_merge in
merge-file.c. If it were written today, this probably would
just use the ll_merge machinery. But it predates that code,
and uses slightly different options to xdl_merge (e.g.,
ZEALOUS_ALNUM).

We could try to abstract out an xdi_merge to match the
existing xdi_diff, but even that is difficult. Rather than
simply report error, we try to treat large files as binary,
and that distinction would happen outside of xdi_merge.

The simplest fix is to just replicate the MAX_XDIFF_SIZE
check in merge-file.c.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2015-09-28 14:58:13 -07:00
..
2014-11-21 10:19:14 -08:00
2014-07-16 11:10:11 -07:00
2015-09-28 14:57:10 -07:00
2014-12-22 12:27:36 -08:00
2015-01-22 13:46:38 -08:00
2014-12-22 12:27:12 -08:00
2014-12-22 09:57:42 -08:00
2014-01-17 12:21:20 -08:00
2015-02-13 13:16:12 -08:00
2014-11-25 15:24:55 -08:00
2015-09-28 14:57:10 -07:00
2015-03-20 12:40:56 -07:00
2014-10-29 10:07:56 -07:00
2015-09-28 14:57:10 -07:00
2015-01-07 12:55:05 -08:00
2014-10-08 13:05:25 -07:00
2015-09-04 10:29:28 -07:00