From: Clemens Buchacher Date: Sun, 19 Sep 2010 09:59:28 GMT Subject: [PATCH 2/3] do not search functions for patch ID Message-ID: <1284890369-4136-3-git-send-email-drizzd@aon.at> In-Reply-To: <1284890369-4136-1-git-send-email-drizzd@aon.at> 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 --- diff.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/diff.c b/diff.c index 9a5c77c..454b9c9 100644 --- a/diff.c +++ b/diff.c @@ -3865,7 +3865,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); } -- 1.7.1.571.gba4d01