summaryrefslogtreecommitdiffstats
path: root/core/load-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/load-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/load-git.c')
-rw-r--r--core/load-git.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/load-git.c b/core/load-git.c
index a1f2d2031..339621c63 100644
--- a/core/load-git.c
+++ b/core/load-git.c
@@ -1664,15 +1664,19 @@ static int do_git_load(git_repository *repo, const char *branch)
git_commit *commit;
git_tree *tree;
+ git_storage_update_progress(false, "do_git_load, find the commit");
ret = find_commit(repo, branch, &commit);
if (ret)
return ret;
+ git_storage_update_progress(false, "git commit tree");
if (git_commit_tree(&tree, commit))
return report_error("Could not look up tree of commit in branch '%s'", branch);
+ git_storage_update_progress(false, "load dives from tree");
ret = load_dives_from_tree(repo, tree);
if (!ret)
set_git_id(git_commit_id(commit));
git_object_free((git_object *)tree);
+ git_storage_update_progress(false, "done do_git_load");
return ret;
}