Skip to content
  • Junio C Hamano's avatar
    xdiff-interface: hide the whole "xdiff_emit_state" business from the caller · 8a3f524b
    Junio C Hamano authored
    
    
    This further enhances xdi_diff_outf() interface so that it takes two
    common parameters: the callback function that processes one line at a
    time, and a pointer to its application specific callback data structure.
    xdi_diff_outf() creates its own "xdiff_emit_state" structure and stashes
    these two away inside it, which is used by the lowest level output
    function in the xdiff_outf() callchain, consume_one(), to call back to the
    application layer.  With this restructuring, we lift the requirement that
    the caller supplied callback data structure embeds xdiff_emit_state
    structure as its first member.
    
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    8a3f524b