Merge branch 'jc/apply-binary-p0' into next
commit6fa690c347c9b4ca223008d0196c0ef47cdb9f27
authorJunio C Hamano <gitster@pobox.com>
Tue, 28 Aug 2012 20:57:05 +0000 (28 13:57 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Aug 2012 20:57:06 +0000 (28 13:57 -0700)
tree6bd11a30fda4abf9423177a682def08c58c31ca9
parent8b9ac7c49ab59ef7572f2ffd5ee1337ef3e40ea8
parent6a2abdc12516cd3801bceef4ccfba399c962a074
Merge branch 'jc/apply-binary-p0' into next

"git apply -p0" did not parse pathnames on "diff --git" line
correctly.  This caused patches that had pathnames in no other
places to be mistakenly rejected (most notably, binary patch that
does not rename nor change mode).  Textual patches, renames or
mode changes have preimage and postimage pathnames in different
places in a form that can be parsed unambiguously and did not suffer
from this problem.

* jc/apply-binary-p0:
  apply: compute patch->def_name correctly under -p0
builtin/apply.c
t/t4103-apply-binary.sh