Show pdf differences on GitHub

git, github, pdf

Solution

PDF, DOC, and ODF files are binary formats, and don't contain plain text. Git doesn't really support human-readable diffs for binary files - it can generate binary diffs, but it won't make much sense without additional processing.

See this answer for more info handling binary diffs: https://stackoverflow.com/a/4705537/247763

As far as I know, the only binary format that GitHub can display diffs for is images. Image diffs are custom parts of GitHub that were written to compare the two different image versions in the repository, but this is not a native Git feature.

If you need to see the differences between two versions of a binary file, see what functionality the standard editor already has. Recent versions of Microsoft Word can display differences between two DOCX files, but that has to be performed on your machine only - not on GitHub.

Problem

Is there any way to show differences (on commits info) between two versions of pdf (or doc, odf) file? Now I can only download any version on it ("view raw" button).

Original source

Related problems