From: Clemens Buchacher Date: Sun, 19 Sep 2010 09:59:28 +0000 (+0200) Subject: do not search functions for patch ID X-Git-Tag: v1.7.3.3~20^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ad14b450c0c70bfcf90de0aa19ffa5e44e402b69;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/diff.c b/diff.c index 19b5bf63e..6dbb4b40f 100644 --- a/diff.c +++ b/diff.c @@ -3768,7 +3768,7 @@ static int diff_get_patch_id(struct diff_options *options, unsigned char *sha1) xpp.flags = 0; xecfg.ctxlen = 3; - xecfg.flags = XDL_EMIT_FUNCNAMES; + xecfg.flags = 0; xdi_diff_outf(&mf1, &mf2, patch_id_consume, &data, &xpp, &xecfg); }