question: local git and cloud storage

Dirk Hohndel dirk at hohndel.org
Wed Jul 1 06:27:50 PDT 2015


On Wed, Jul 01, 2015 at 10:55:23AM +0200, Jan Mulder wrote:
> Since the git storage was implemented, i use a local git store for my
> divelog, so no XML ssrf file. Now, with the new cloud storage emerging I run
> in to the following scenario.
> 
> On a trip, I like to use cloud storage, so that I can daily update my log,
> en when coming back home, most of the logging work is done (and synced to
> the cloud). At this point of implementation, this works fine. However, I
> like to continue updating my local git store as well (Notice that I am not
> talking about the local cloud git cache). My question is: how do I save the
> cloud updates to my local git repository? I see that I can save to a local
> XML ssrf file.

So first a simple question. What's wrong with the local cache of the cloud
git repository? Besides being in a different folder it is EXACTLY the same
as what you used to use as your local git repository. It just happens to
be backed up to the cloud when you are connected...

But to answer your question, Save As supports git repositories as well.
This is just not an "end user feature" so it isn't really documented
anywhere.

Create a folder (let's say ~/dives). Run git init in it. Store to it by
entering ~/dives[branch] with a branch name of your choice in the Save As
UI.

So you could open the cloud storage and then store things to a git
repository of your choice locally.

But I repeat - what is the advantage that you see with this compared to
just using the automatic local cache of the cloud repository.

(and just to answer my own question... there is one major difference right
now and that is that on the cloud repository and its local cache you are
currently forced to exactly one branch that uses your email address as
branch name... I am thinking about ways to change that to enable support
for multiple "data files" on a single email address in the cloud
storage... but I haven't heard from anyone that this is even a feature
that they use... so I doubt that that's why you want to be able to
specifiy a local git repository)

/D


More information about the subsurface mailing list