diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-09-20 10:11:09 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-20 10:15:34 -0700 |
commit | d0fba482b7fe81da1b5fe91b535a2ae7417f5cbb (patch) | |
tree | 2226618995f3fe2a7bf43ff8470a8cdbcece6794 /save-git.c | |
parent | 54ec332c2ff2e1c853a8b55b3aa55419b718e709 (diff) | |
download | subsurface-d0fba482b7fe81da1b5fe91b535a2ae7417f5cbb.tar.gz |
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>
Diffstat (limited to 'save-git.c')
-rw-r--r-- | save-git.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/save-git.c b/save-git.c index 96a689ffa..1228b7762 100644 --- a/save-git.c +++ b/save-git.c @@ -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; |