Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Version control for DOCX and PDF?

I've been playing around with git and hg lately and then suddenly it occurred to me that this kind of thing will be great for documents.

I've a document which I edit in DOCX and export as PDF. I tried using both git and hg to version control it and turns out with hg you end up tracking only binary and diff-ing isn't meaningful. Although with git I can meaningfully diff DOCX (haven't tried on PDF yet) I was wondering if there is a better way to do it than I'm doing it right now. (Ideally, not having to leave Word to diff will be the best solution.)

like image 713
Jungle Hunter Avatar asked Jul 21 '10 11:07

Jungle Hunter


People also ask

How do I version control a Word document?

Office has built-in, automagic version control. Every time you save a file a new "version" is created. To view, compare, and restore previous versions of a document, select File -> Info -> Versions (File -> History in Office Mobile).

How do you maintain version control of documents?

Keep version control simple and systematic. The important thing is to agree a standard within your team which everyone understands and applies. Each time a revision is made, save the document as a new version, with a new unique version number – do not overwrite the previous version.

Does Office 365 have version control?

Version control is accessible through Microsoft Office (Word, Excel, PowerPoint) or the Office 365 Portal. From the open file, click on the File tab: You will see the current version at the top and previous versions thereafter.

What is difference between DOCX file and PDF?

docx formats are also good options for distributing documents. They're reasonably compact, and unlike PDF, files can be easily edited by recipients.


2 Answers

There are two different concepts here - one is "can the version control system make some intelligent judgements about the contents of files?" - so that it can store just delta information between revisions (and do things like assign responsibility to individual parts of a file).

The other is 'do I have a file comparison tool which is useful for the types of files I have in the version control system'. Version control systems tend to come with file comparison tools which are inferior to dedicated alternatives. But they can pretty much always be linked to better diff programs - either for all file types or specific ones.

So it's common to use, for example, Beyond Compare as a general compare tool, with Word as a dedicated Word document comparer.

Different version control systems differ as to how good people perceive them to be at handling 'binaries', but that's often as much to do with handling huge files and providing exclusive locking as it is to do with file comparison.

like image 151
Will Dean Avatar answered Oct 06 '22 18:10

Will Dean


http://tortoisehg.bitbucket.io/ includes a plugin called docdiff that integrates Word and Excel diff'ing.

like image 35
Joshua Avatar answered Oct 06 '22 18:10

Joshua