mirror of
https://git.zx2c4.com/cgit
synced 2024-11-22 08:28:42 +00:00
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>
This commit is contained in:
parent
ff13396926
commit
0de21a8d41
1
shared.c
1
shared.c
@ -373,6 +373,7 @@ int cgit_diff_files(const unsigned char *old_sha1,
|
|||||||
diff_params.flags = XDF_NEED_MINIMAL;
|
diff_params.flags = XDF_NEED_MINIMAL;
|
||||||
emit_params.ctxlen = 3;
|
emit_params.ctxlen = 3;
|
||||||
emit_params.flags = XDL_EMIT_FUNCNAMES;
|
emit_params.flags = XDL_EMIT_FUNCNAMES;
|
||||||
|
emit_params.find_func = NULL;
|
||||||
emit_cb.outf = filediff_cb;
|
emit_cb.outf = filediff_cb;
|
||||||
emit_cb.priv = fn;
|
emit_cb.priv = fn;
|
||||||
xdl_diff(&file1, &file2, &diff_params, &emit_params, &emit_cb);
|
xdl_diff(&file1, &file2, &diff_params, &emit_params, &emit_cb);
|
||||||
|
Loading…
Reference in New Issue
Block a user