Re: bug: when applying binary diffs, -p0 is ignored

2012-08-24 Thread Junio C Hamano
Colin McCabe writes: > I found a bug in git's handling of binary diff segments. > > When applying binary diffs using -p0, the prefix (or --strip) argument > is ignored. Thanks for a report. An ancient bug well spotted. Perhaps this will help. -- >8 -- Subject: apply: compute patch->def_name c

bug: when applying binary diffs, -p0 is ignored

2012-08-24 Thread Colin McCabe
I found a bug in git's handling of binary diff segments. When applying binary diffs using -p0, the prefix (or --strip) argument is ignored. For example, try this: git apply -p0 --binary <<'EOF' diff --git a/init.tar.gz a/init.tar.gz new file mode 100644 index 0