• Jeff King's avatar
    diff: clarify textconv interface · a64e6a44
    Jeff King authored
    The memory allocation scheme for the textconv interface is a
    bit tricky, and not well documented. It was originally
    designed as an internal part of diff.c (matching
    fill_mmfile), but gradually was made public.
    Refactoring it is difficult, but we can at least improve the
    situation by documenting the intended flow and enforcing it
    with an in-code assertion.
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
userdiff.h 780 Bytes