From 2b01ab7d505b55812d656f6ce19ed19965d7c90f Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 17 Jun 2017 23:50:22 -0700 Subject: 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 --- core/load-git.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core/load-git.c') 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; } -- cgit v1.2.3-70-g09d2