summaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-05 22:51:09 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-05 22:57:16 -0700
commit3555cadb77ca25fcf4883a5f1506e83222d6b29d (patch)
tree41c397e941e99d9aa052890dc18a6ded40ffb40c /core/dive.h
parent8b670c3f3f937ca7b491e3e44f462a86b1509f53 (diff)
downloadsubsurface-3555cadb77ca25fcf4883a5f1506e83222d6b29d.tar.gz
QML UI: don't fetch the remote twice when loading
We first check the sha to see if we want to load at all. But at that point we already have the repository and the branch and we have synced with the remote. So when we decide that we need to reload from storage, we don't need to repeat those steps, instead we can go directly to the git load. For that to work we need to pass the repository pointer and the branch name back to the caller so that we can directly call git_load_dives(). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/dive.h b/core/dive.h
index be721348c..82cda6719 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -675,7 +675,6 @@ extern int parse_cobalt_buffer(sqlite3 *handle, const char *url, const char *buf
extern int parse_divinglog_buffer(sqlite3 *handle, const char *url, const char *buf, int size, struct dive_table *table);
extern int parse_dlf_buffer(unsigned char *buffer, size_t size);
-extern int check_git_sha(const char *filename);
extern int parse_file(const char *filename);
extern int parse_csv_file(const char *filename, char **params, int pnr, const char *csvtemplate);
extern int parse_seabear_csv_file(const char *filename, char **params, int pnr, const char *csvtemplate);