* git apply-diff / am cannot deal with patches generated with git diff/format-patch --noprefix?
@ 2011-08-10 22:25 marcel partap
2011-08-10 22:32 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: marcel partap @ 2011-08-10 22:25 UTC (permalink / raw)
To: git
...at least it seems so. -p0 does not help:
> fatal: git apply: bad git-diff - inconsistent old filename on line xx
So it is not possible to have diff.noprefix set as default and generate
patches that can be circulated? Or am i missing something there?
#regards/marcel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: git apply-diff / am cannot deal with patches generated with git diff/format-patch --noprefix?
2011-08-10 22:25 git apply-diff / am cannot deal with patches generated with git diff/format-patch --noprefix? marcel partap
@ 2011-08-10 22:32 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2011-08-10 22:32 UTC (permalink / raw)
To: marcel partap; +Cc: git
marcel partap <mpartap@gmx.net> writes:
> ...at least it seems so. -p0 does not help:
>> fatal: git apply: bad git-diff - inconsistent old filename on line xx
Hmm, does not reproduce for me.
$ git checkout v1.7.6 ;# or whatever random commit I had at hand
$ git show --no-prefix >P.diff
$ grep "^diff --git" P.diff
diff --git Documentation/RelNotes/1.7.6.txt Documentation/RelNotes/1.7.6.txt
diff --git Documentation/git.txt Documentation/git.txt
diff --git GIT-VERSION-GEN GIT-VERSION-GEN
$ git checkout HEAD^
$ git apply -p0 <P.diff
$ git diff v1.7.6 ; echo nothing
nothing
$ git diff --stat
Documentation/RelNotes/1.7.6.txt | 8 +-------
Documentation/git.txt | 5 +++++
GIT-VERSION-GEN | 2 +-
3 files changed, 7 insertions(+), 8 deletions(-)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-10 22:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-10 22:25 git apply-diff / am cannot deal with patches generated with git diff/format-patch --noprefix? marcel partap
2011-08-10 22:32 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).