gitdiff-parser icon indicating copy to clipboard operation
gitdiff-parser copied to clipboard

Incorrect parsing of `isBinary`

Open jclem opened this issue 1 year ago • 0 comments

This shows a diff of a binary file:

$ git diff
diff --git c/image.png w/image.png
index 9be2f56..f30aa31 100644
Binary files c/image.png and w/image.png differ

Note that the first line says "diff --git", which means that gitdiff-parser treats this as a normal file. The "Binary" prefix isn't until later.

jclem avatar Oct 08 '24 16:10 jclem