Merge branch 'jc/apply-reject-noop-hunk' into next
commit8063665b428c796a3689b4711a90b7fdb51d36d2
authorJunio C Hamano <gitster@pobox.com>
Thu, 11 Jun 2015 17:36:54 +0000 (11 10:36 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Jun 2015 17:36:54 +0000 (11 10:36 -0700)
treefaa3d24efb2007083046a85294b1c7f67eb59fe8
parent1a18470cb8c6fbcf40b535cf669aa165844706d5
parentad6e8ed37bc139c64b1b75a7a9ff6e4054f71756
Merge branch 'jc/apply-reject-noop-hunk' into next

"git apply" cannot diagnose a patch corruption when the breakage is
to mark the length of the hunk shorter than it really is on the
hunk header line "@@ -l,k +m,n @@"; one special case it could is
when the hunk becomes no-op (e.g. k == n == 2 for two-line context
patch output), and it learned how to do so.

* jc/apply-reject-noop-hunk:
  apply: reject a hunk that does not do anything
builtin/apply.c