Skip to content

Commit ad14b45

Browse files
Clemens Buchachergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent beb1721 commit ad14b45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3768,7 +3768,7 @@ static int diff_get_patch_id(struct diff_options *options, unsigned char *sha1)
37683768

37693769
xpp.flags = 0;
37703770
xecfg.ctxlen = 3;
3771-
xecfg.flags = XDL_EMIT_FUNCNAMES;
3771+
xecfg.flags = 0;
37723772
xdi_diff_outf(&mf1, &mf2, patch_id_consume, &data,
37733773
&xpp, &xecfg);
37743774
}

0 commit comments

Comments
 (0)