projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
beb1721
)
do not search functions for patch ID
author
Clemens Buchacher
<drizzd@aon.at>
Sun, 19 Sep 2010 09:59:28 +0000
(11:59 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 24 Sep 2010 01:35:07 +0000
(18:35 -0700)
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>
diff.c
patch
|
blob
|
history
diff --git
a/diff.c
b/diff.c
index 19b5bf63ed37aa49c00e63f7aec621ce601b6daa..6dbb4b40fa7eccff62129368ea1a59f9b29fdb83 100644
(file)
--- 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);
}