summaryrefslogtreecommitdiffstats
path: root/core/load-git.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-17 23:50:22 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-18 01:00:30 -0700
commit2b01ab7d505b55812d656f6ce19ed19965d7c90f (patch)
tree0e99f5abc24f423f9dc49f98c04dd90ad57b117d /core/load-git.c
parent4866dd6f45fd7c3bbd8502bbe4a1c2ae6ed59d40 (diff)
downloadsubsurface-2b01ab7d505b55812d656f6ce19ed19965d7c90f.tar.gz
Clean up git storage update messages
Translate all of them, but also remove some redundant or possibly misleading messages. These are now seen by users, not just developers trying to debug the code. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/load-git.c')
-rw-r--r--core/load-git.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/load-git.c b/core/load-git.c
index 01c231c77..8c39c494e 100644
--- a/core/load-git.c
+++ b/core/load-git.c
@@ -1675,19 +1675,19 @@ static int do_git_load(git_repository *repo, const char *branch)
git_commit *commit;
git_tree *tree;
- git_storage_update_progress("do_git_load, find the commit");
ret = find_commit(repo, branch, &commit);
if (ret)
return ret;
- git_storage_update_progress("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("load dives from tree");
+ git_storage_update_progress(translate("gettextFromC", "Load dives from local cache"));
ret = load_dives_from_tree(repo, tree);
- if (!ret)
+ if (!ret) {
set_git_id(git_commit_id(commit));
+ git_storage_update_progress(translate("gettextFromC", "Successfully opened dive data"));
+ }
git_object_free((git_object *)tree);
- git_storage_update_progress("done do_git_load");
+
return ret;
}