- Atomic -
Yep, but done with a global lock. - Consistency -
Yep. Since it's NoSQL, there's no referential checks, so this is easy. Git itself probably wants index / commit tree has to be readable, and all attributes.json files be valid. I don't see any reason it wouldn't be. - Isolated -
Sure, works fine, due to that global lock. - Durable -
Check. Once it's written, it's written.So, git doesn't get you any of this for free, and getting Atomic / Isolated is done by introducing a big ugly global lock. I guess I don't see the appeal of using git (or even a model like git) because it doesn't get you any interesting necessary features for free. I see the backup and history thing as a secondary feature -- neat, but not worth sacrificing ACID for.
That said, cool idea -- there's not a lot of code you need to get to a reasonably small codebase.