Cloud storage: in verbose mode give lots of progress information

If a user gets stuck accessing cloud storage it's often hard to figure out
which step is hanging which makes it much harder to narrow down the
problem. With this patch calling Subsurface with '-v' will give somewhat
finely grained progress information on stderr.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-09-20 10:11:09 -07:00
parent 54ec332c2f
commit d0fba482b7
4 changed files with 42 additions and 1 deletions

View file

@ -1178,6 +1178,9 @@ int do_git_save(git_repository *repo, const char *branch, const char *remote, bo
struct dir tree;
git_oid id;
if (verbose)
fprintf(stderr, "git storage: do git save\n");
/* Start with an empty tree: no subdirectories, no files */
tree.name[0] = 0;
tree.subdirs = NULL;