4 ms·
Studying the design document [1], one sentence makes it clear why this project is needed and simply using the Dropbox client does not suffice: > We can perform
by rav 10y ago
Studying the design document [1], one sentence makes it clear why this project is needed and simply using the Dropbox client does not suffice:
> We can perform a compare-and-swap operation in Dropbox by using the "update" write mode with a specific revision number.
Since a Git repository basically consists of a hash-addressed content object store alongside a mutable list of references (mapping branch names to hashes of latest commits), you need a compare-and-swap operation on the reference list to update the branch reference when you push new commits. The Dropbox client by design does not do a compare-and-swap whenever a file is updated, but the Dropbox API supports it.
[1] https://github.com/anishathalye/git-remote-dropbox/blob/master/DESIGN.rst https://github.com/anishathalye/git-remote-dropbox/blob/mast...
- Mo3 10y agoI'm not sure how this is "needed" just because it is possible. Setting up a small headless git server takes 2 minutes without sharing your code with every intelligence agency on the planet.
- motoboi 10y agoIf that server is on AWS, Google Cloud or Azure, wouldn't it be totally vulnerable to national security letters?
- dahdum 10y agoCould be alluding to the appointment of Condoleezza Rice to the Dropbox board, and implication that Dropbox just gives them access versus requiring pesky NSLs or warrants (given Rice's defense of those NSA programs).
- drunkcatsdgaf 10y agosee Amber Cottle.