diff: discard hunk headers for patch-ids earlier
commitb135739125e9dc49fafc42d4a8a1956c46329ff1
authorJeff King <peff@peff.net>
Fri, 2 Nov 2018 06:36:36 +0000 (2 02:36 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Nov 2018 04:14:35 +0000 (5 13:14 +0900)
treeb851e900bb4f33f6e9f91a14fc938fc167a0fb13
parent3b40a090fd4e441e88897dfa96f50039952ed45b
diff: discard hunk headers for patch-ids earlier

We do not include hunk header lines when computing patch-ids, since
the line numbers would create false negatives. Rather than detect and
skip them in our line callback, we can simply tell xdiff to avoid
generating them.

This is similar to the previous commit, but split out because it
actually requires modifying the matching line callback.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c