From 922c945f5a5199fb27f9b68272157a238d2c371e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 5 Apr 2016 22:54:54 -0700 Subject: 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 --- core/save-git.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/save-git.c') 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 -- cgit v1.2.3-70-g09d2