This is also an issue with git-generated patches that rename (git diff --find-renames) or copy (git diff --find-copies) a file. For example:

diff --git a/README.md b/README-copy.md
similarity index 100%
copy from README.md
copy to README-copy.md
diff --git a/README.md b/README-rename.md
similarity index 100%
rename from README.md
rename to README-rename.md

I'm working on revising git-buildpackage to generate patches that rename and copy files: <https://salsa.debian.org/agx/git-buildpackage/-/merge_requests/48>. No-change renames or copies such as the above example emit a warning, but seem to apply correctly:

dpkg-source: warning: diff 'example/debian/patches/foo.patch' doesn't contain any patch

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to