@matheusbsbs / matheus-bagliano / commits / ad14b450c0
Fork 0

do not search functions for patch ID

Visual aids, such as the function name in the hunk header, are not necessary for the purposes of computing a patch ID. This is a performance optimization. Signed-off-by: Clemens Buchacher <drizzd@aon.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Clemens Buchacher committed Sep 19, 2010 at 11:59 UTC ad14b450c0c70bfcf90de0aa19ffa5e44e402b69
1 file changed +1 -1
diff.c
+1 -1
@@ -3768,7 +3768,7 @@ static int diff_get_patch_id(struct diff_options *options, unsigned char *sha1)
3768
3769 xpp.flags = 0;
3770 xecfg.ctxlen = 3;
3771 - xecfg.flags = XDL_EMIT_FUNCNAMES;
3771 + xecfg.flags = 0;
3772 xdi_diff_outf(&mf1, &mf2, patch_id_consume, &data,
3773 &xpp, &xecfg);
3774 }