mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cloud storage: sync the remote after save
This change once again tests if the remote can be reached. Even with a fairly big data file and a medium speed internet connection the remote sync is fast enough to call it nearly instantaneous. Maybe a couple of seconds. We may need more checks / different heuristics / warnings if the sync didn't happen, etc. But for now this should allow more reasonable testing. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
492369b312
commit
e21cae2d46
5 changed files with 41 additions and 22 deletions
5
dive.h
5
dive.h
|
@ -671,8 +671,9 @@ extern void save_one_dive_to_mb(struct membuffer *b, struct dive *dive);
|
|||
struct git_oid;
|
||||
struct git_repository;
|
||||
#define dummy_git_repository ((git_repository *)3ul) /* Random bogus pointer, not NULL */
|
||||
extern struct git_repository *is_git_repository(const char *filename, const char **branchp);
|
||||
extern int git_save_dives(struct git_repository *, const char *, bool select_only);
|
||||
extern struct git_repository *is_git_repository(const char *filename, const char **branchp, const char **remote);
|
||||
extern int sync_with_remote(struct git_repository *repo, const char *remote, const char *branch);
|
||||
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 *saved_git_id;
|
||||
extern void clear_git_id(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue