Move git related declarations into their own header file

Also change the name of the enum and make sure all the inner functions get
passed the remote transport information.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-06-13 08:01:06 -07:00
parent e21cae2d46
commit 9a22efb97b
8 changed files with 58 additions and 36 deletions

View file

@ -13,6 +13,7 @@
#include "dive.h"
#include "device.h"
#include "membuffer.h"
#include "git-access.h"
#include "version.h"
/*
@ -1140,7 +1141,7 @@ static int do_git_save(git_repository *repo, const char *branch, const char *rem
if (prefs.cloud_background_sync) {
/* now sync the tree with the cloud server */
if (strstr(remote, "https://cloud.subsurface-divelog.org")) {
sync_with_remote(repo, remote, branch);
sync_with_remote(repo, remote, branch, RT_HTTPS);
}
}
}