Subsurface ans Dropbox
Linus Torvalds
torvalds at linux-foundation.org
Wed May 27 09:47:01 PDT 2015
On Wed, May 27, 2015 at 9:22 AM, Davide DB <dbdavide at gmail.com> wrote:
> A little OT
>
> What is the git integration that sometimes people here talk about?
> How it (should) works exactly?
The core code works well for local git repositories, and I use it
exclusively. I think Dirk does too. But that core code depends on a
local git repository that you can then sync by hand (so kind of
equivalent to dragging the xml file to dropbox). So the main advantage
is just that you get the git consistency guarantees, and imho a nicer
file layout.
The remote access code (so that you can "transparently" just use a
remote git repository, and it all uses a cached copy if you're not
online etc) actually has some working core code, but doesn't actually
work in *practice*. The reason is sad: libgit2 doesn't have any sane
authentication model. Real git will use your .ssh/config file to pick
things like authentication keys and do proper user names and hostname
translations, so you can set things up so that it "just works".
libgit2 doesn't do any of that.
So actually accessing the remote repository just doesn't work in
practice, and I gave up fighting it. The core code works fine, but
only for transports that don't require any authentication at all,
which just isn't realistic or useful.
Oh well.
Linus
More information about the subsurface
mailing list