mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
4866dd6f45
commit
2b01ab7d50
6 changed files with 31 additions and 39 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue