diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-12-27 09:56:27 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-27 10:06:33 -0800 |
commit | bc200c308933ec6e57700d1dfd5628cd26d1939c (patch) | |
tree | 28515797b95e587efa08b359aec16fb653b58116 /subsurface-core/git-access.h | |
parent | 739d7d74e767b181974226179c5f1a4b56146e4a (diff) | |
download | subsurface-bc200c308933ec6e57700d1dfd5628cd26d1939c.tar.gz |
Cloud storage: check the top commit without loading dives
This way we can check if the local cache is in sync with the remote without
always triggering a load of the dives from git.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/git-access.h')
-rw-r--r-- | subsurface-core/git-access.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/subsurface-core/git-access.h b/subsurface-core/git-access.h index a2a9ba3ae..7e57351fb 100644 --- a/subsurface-core/git-access.h +++ b/subsurface-core/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 const char *get_sha(git_repository *repo, const char *branch); 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); |