]> git.ipfire.org Git - thirdparty/patchwork.git/commit
parser: Handle binary git patches
authorStephen Finucane <stephen@that.guru>
Wed, 11 May 2022 09:30:45 +0000 (10:30 +0100)
committerStephen Finucane <stephen@that.guru>
Wed, 11 May 2022 11:16:56 +0000 (12:16 +0100)
commit6ba50aadcea526a9b4e4742f0427479bb237da48
tree3a6cf7e23b73b477f5d966dad00f9df43e2ceebc
parent5b53f46def5fc4961bfa77a8abb3e968ae839c59
parser: Handle binary git patches

'git-format-patch' is able to generate binary patches. Fortunately,
these are quite easy to spot since they're explicitly labelled as such.
Add support for parsing these to the parser.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Closes: #463
patchwork/parser.py
patchwork/tests/mail/0025-git-add-binary-file.mbox [new file with mode: 0644]
patchwork/tests/mail/0026-git-add-mixed-binary-text-files.mbox [new file with mode: 0644]
patchwork/tests/mail/0027-git-modify-binary-file.mbox [new file with mode: 0644]
patchwork/tests/test_parser.py