diff.c: fix get_patch_id()
The function internally generated diff to get the patch id but passed a wrong emit flags to the xdiff layer when it did so. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Jun 28, 2006 at 22:49 UTC
9fdc3bb5c20e37e410e03ed5b6c71a7e647ccee8
1 file changed
+1
-1
diff.c
+1
-1
@@ -2217,7 +2217,7 @@ static int diff_get_patch_id(struct diff_options *options, unsigned char *sha1)
2217
2218
xpp.flags = XDF_NEED_MINIMAL;
2219
xecfg.ctxlen = 3;
2220
- xecfg.flags = 3;
2220
+ xecfg.flags = XDL_EMIT_FUNCNAMES;
2221
ecb.outf = xdiff_outf;
2222
ecb.priv = &data;
2223
xdl_diff(&mf1, &mf2, &xpp, &xecfg, &ecb);