summaryrefslogtreecommitdiffstats
path: root/git-access.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-13 18:27:41 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-13 18:36:04 -0700
commitef85875cd006db61679b95e62fd70101c9014799 (patch)
tree13a4d8b9851675aecd16d59f2c3d1a4ef5ea6ec8 /git-access.h
parentf6981f021022a76498b417f1a34b4a21535c1a26 (diff)
downloadsubsurface-ef85875cd006db61679b95e62fd70101c9014799.tar.gz
Cloud storage: make do_git_save available to other modules
And add a parameter that tells it whether to try to save any Subsurface data or whether to just create a branch and push it out. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'git-access.h')
-rw-r--r--git-access.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-access.h b/git-access.h
index e1b72d100..981c19fd1 100644
--- a/git-access.h
+++ b/git-access.h
@@ -18,6 +18,7 @@ extern struct git_repository *is_git_repository(const char *filename, const char
extern int sync_with_remote(struct git_repository *repo, const char *remote, const char *branch, enum remote_transport rt);
extern int git_save_dives(struct git_repository *, const char *, const char *remote, bool select_only);
extern int git_load_dives(struct git_repository *, const char *);
+extern int do_git_save(git_repository *repo, const char *branch, const char *remote, bool select_only, bool create_empty);
extern const char *saved_git_id;
extern void clear_git_id(void);
extern void set_git_id(const struct git_oid *);