cgit

commit 0de21a8d4176f15b4185a2e083787eeb05d95a77

Author: Lars Hjemli <hjemli@gmail.com>

Set xdemitconf_t.findfunc=NULL

This function-pointer was introduced in git v1.5.3-rc0-42-gf258475. It
needs to have a value, and setting it to NULL triggers the old behaviour
for selecting hunk headers.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>

 shared.c | 1 +


diff --git a/shared.c b/shared.c
index 077934f7ad7a51359d64d92407647232e83904f2..cd9d68d24af2682d000dafec06ca5244b42c3d69 100644
--- a/shared.c
+++ b/shared.c
@@ -373,6 +373,7 @@
 	diff_params.flags = XDF_NEED_MINIMAL;
 	emit_params.ctxlen = 3;
 	emit_params.flags = XDL_EMIT_FUNCNAMES;
+	emit_params.find_func = NULL;
 	emit_cb.outf = filediff_cb;
 	emit_cb.priv = fn;
 	xdl_diff(&file1, &file2, &diff_params, &emit_params, &emit_cb);