Re:Gitdocs: Open-source Dropbox using Ruby + Git
by joshbuddy on Wednesday November 30, 2011 @11:31PM
(#3298332)
Oo. Great idea. I'll add that.
Re:Gitdocs: Open-source Dropbox using Ruby + Git
by rcthompson on Thursday December 01, 2011 @12:58AM
(#3298579)
It's not as simple as it sounds. What if there's already a file called "stuff.txt (other guy's version)"? There's lots and lots of edge cases. You basically need a function that can always return an appropriate but not-already-existing filename.
Re:Gitdocs: Open-source Dropbox using Ruby + Git
by nesquena on Thursday December 01, 2011 @01:59AM
(#3298708)
I think graceful file conflict resolution will be an essential part of gitdocs and we will work to handle these edge cases as best as we can. Thanks for bringing it up.
Re:Gitdocs: Open-source Dropbox using Ruby + Git
by hbons on Thursday December 01, 2011 @09:10AM
(#3299752)
You might want to look at this bit:
https://github.com/hbons/SparkleShare/blob/master/SparkleLib...
It tries to copy the Dropbox conflict behaviour.
Re:Gitdocs: Open-source Dropbox using Ruby + Git
by rcthompson on Thursday December 01, 2011 @11:27AM
(#3300252)
Interesting. I'll have to try it out again.
Although, if I'm reading this correctly, the logic isn't quite right. It uses the timestamp of the time when the conflict is detected, when it should really use the conflicted file's last-modified time, or maybe the timestamp of the conflicting commit.
Re:Gitdocs: Open-source Dropbox using Ruby + Git
by lloeki on Thursday December 01, 2011 @07:53AM
(#3299532)
"stuff.txt (sha1)" works. User-friendliness of it depends of user base (and might actually be a feature as it traces back to the exact history point)
Re:Gitdocs: Open-source Dropbox using Ruby + Git
by beza1e1 on Thursday December 01, 2011 @08:29AM
(#3299629)
This requires another "merge strategy" in git terminology.
http://www.cs.potsdam.edu/cgi-bin/man/man2html?1+git-merge#l...
I'll have to see if Gitdocs does anything like that.