summaryrefslogtreecommitdiffstats
path: root/core/save-git.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-05 22:54:54 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-05 23:39:54 -0700
commit922c945f5a5199fb27f9b68272157a238d2c371e (patch)
tree33edf05a84e345454b8d59adc7a0aae29e51c8e8 /core/save-git.c
parent3555cadb77ca25fcf4883a5f1506e83222d6b29d (diff)
downloadsubsurface-922c945f5a5199fb27f9b68272157a238d2c371e.tar.gz
QML UI: more hacking around with git progress reporting
I gave up on the magic numbers and instead report simply linear progress. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/save-git.c')
-rw-r--r--core/save-git.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/save-git.c b/core/save-git.c
index a8120cfeb..1afb720fe 100644
--- a/core/save-git.c
+++ b/core/save-git.c
@@ -923,7 +923,7 @@ static int create_git_tree(git_repository *repo, struct dir *root, bool select_o
struct dive *dive;
dive_trip_t *trip;
- git_storage_update_progress(20, "start create git tree");
+ git_storage_update_progress(false, "start create git tree");
save_settings(repo, root);
save_divesites(repo, root);
@@ -932,7 +932,7 @@ static int create_git_tree(git_repository *repo, struct dir *root, bool select_o
trip->index = 0;
/* save the dives */
- git_storage_update_progress(22, "start saving dives");
+ git_storage_update_progress(false, "start saving dives");
for_each_dive(i, dive) {
struct tm tm;
struct dir *tree;
@@ -965,7 +965,7 @@ static int create_git_tree(git_repository *repo, struct dir *root, bool select_o
save_one_dive(repo, tree, dive, &tm, cached_ok);
}
- git_storage_update_progress(25, "done creating git tree");
+ git_storage_update_progress(false, "done creating git tree");
return 0;
}
@@ -1196,7 +1196,7 @@ int do_git_save(git_repository *repo, const char *branch, const char *remote, bo
fprintf(stderr, "git storage: do git save\n");
if (!create_empty) // so we are actually saving the dives
- git_storage_update_progress(19, "start git save");
+ git_storage_update_progress(false, "start git save");
/*
* Check if we can do the cached writes - we need to