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
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
2 matches
Mail list logo