3 ms·
Docx & co are XML based, but they are _zipped_, therefore binary. Which make a version control pretty much impossible.
by i0nutzb 6y ago
Docx & co are XML based, but they are _zipped_, therefore binary.
Which make a version control pretty much impossible.
- ies7 6y agoI never try, but I thought you just need to rename the .docx/.xlsx/.pptx to .zip, unpack them then do the version control on that files?
- Piskvorrr 6y agoThat works. It's clumsy, but can be automated.
- saurik 6y agoI mean, git supports applying filters on the file for exactly this purpose? The content that is being compressed is likely going to still diff poorly, but git also supports custom differs for example that purpose, so I don't know why you are saying "impossible".
- gspr 6y ago> I mean, git supports applying filters on the file for exactly this purpose? Indeed, pass (https://www.passwordstore.org/ https://www.passwordstore.org/) uses this to allow diffing and sane tracking of its password files, even though they are binary encrypted GPG blobs.
- deleted 6y ago[deleted]
- rleigh 6y agoThat's what "flat" OpenDocument files are for. Use .fotd, .fods and then you can have all the file content, plus referenced images, objects etc. all separate files under version control without the zip container. I do this with LibreOffice. I've not tested Microsoft Office with this workflow.