add xdi_diff_hunks() for callers that only need hunk lengths
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sat, 25 Oct 2008 13:31:15 +0000 (15:31 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 25 Oct 2008 19:09:31 +0000 (12:09 -0700)
commit86295bb6bac1482d29650d1f77f19d8e7a7cc2fe
tree8d64f0afe14423d04da9414a1dbaa809c1f15e3b
parentef2e62fe23173586f49a00c6ae953ebbdb0d13ab
add xdi_diff_hunks() for callers that only need hunk lengths

Based on a patch by Brian Downing, this uses the xdiff emit_func feature
to implement xdi_diff_hunks().  It's a function that calls a callback for
each hunk of a diff, passing its lengths.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff-interface.c
xdiff-interface.h