summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClemens Buchacher <drizzd@aon.at>2010-09-19 09:59:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-09-24 01:35:07 (GMT)
commitad14b450c0c70bfcf90de0aa19ffa5e44e402b69 (patch)
treebc8e2a67eaab16f206955616717e0389f2f87468
parentbeb172172f3dc63b4e7ad671e34826fb812281f8 (diff)
downloadgit-ad14b450c0c70bfcf90de0aa19ffa5e44e402b69.zip
git-ad14b450c0c70bfcf90de0aa19ffa5e44e402b69.tar.gz
git-ad14b450c0c70bfcf90de0aa19ffa5e44e402b69.tar.bz2
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>
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index 19b5bf6..6dbb4b4 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);
}