Which isn’t any different than keeping them as separate files space wise so what’s the problem?
(Other than Word having built-in versioning.)
Comment on LPT Do it.
MacNCheezus@lemmy.today 5 months agoDoesn’t matter, to git they are still binary files, which means it’ll check in each revision as an entirely new copy.
Which isn’t any different than keeping them as separate files space wise so what’s the problem?
(Other than Word having built-in versioning.)
what’s the problem?
It’s basically just keeping a bunch of separate files but with extra steps.
I would genuinely rather use git in such a scenario than not because there are plenty of other useful features over a bunch of files in a folder. Sure, obviously if the file is massive it is inconvenient, but that’s not a fair comparison because we’re comparing multiple copies “FINAL FINAL FOR REAL” in a folder anyways. There isn’t suddenly less size that way. It seems incredibly silly to describe it as “keeping files with extra steps” because people aren’t using git for space saving, they’re using it for version tracking. Everything git does is “keeping files with extra steps.”
Everything git does is “keeping files with extra steps.”
Not quite, because text files are stored as incremental diffs, which not only saves massive amounts of space but allows for effective comparisons of what exactly has changed between versions. While the former is more of a nice bonus these days with storage being extremely cheap, the latter is in fact the main reason one would use git to begin with.
I think you can write clean/smudge filter that will turn docx into tree(folder)
You probably can but here’s why that’s still not gonna be all that effective.
Still better than having 30 copies of same document and forgetting which was the last one.
Sort by -> Date modified
Zagorath@aussie.zone 5 months ago
Someone could probably build a tool which sits in between you and Git, which unzips the file before committing and after pulling, so Git sees the raw xml file, but you always see the zipped docx.
petersr@lemmy.world 5 months ago
Yeah, I made such a tool - and kept polishing edge cases until I gave up.
MacNCheezus@lemmy.today 5 months ago
I’m sure you could, but yes, it’s likely not worth the trouble.
refalo@programming.dev 5 months ago
a pre hook filter that beautifies and sanitizes the xml should fix that
uis@lemm.ee 5 months ago
git-scm.com/…/Customizing-Git-Git-Attributes#filt…