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).
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.