User: Password:
Subscribe / Log in / New account



Posted May 19, 2011 5:07 UTC (Thu) by smurf (subscriber, #17840)
In reply to: DVCS-autosync by nix
Parent article: DVCS-autosync

There are a couple of document formats which are singularly not suited for VCSes, though.

OOo documents, for instance, are compressed XML files. There's no sane way to store multiple versions of these in a git archive. Store them uncompressed (dunno how to teach OOo that) and you get a signficant decrease in storage requirements, long-term.

Still needs a domain specific conflict rresolver, of course. You could probably script your way into LibreOffice to do it, though it's nontrivial.

(Log in to post comments)


Posted May 19, 2011 5:20 UTC (Thu) by dlang (subscriber, #313) [Link]

actually, since git does the compression itself, the answer is to have git uncompress the documents and version the uncompressed data. then when you check it out git assembles the version you want, then compresses it as you check it out.

you can even insert XML aware diff engines if you want.


Posted May 26, 2011 19:43 UTC (Thu) by nix (subscriber, #2304) [Link]

Yes indeed. 'man gitattributes' and search for 'filter' for something that may help here.

Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds