diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-09-20 08:41:21 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-20 10:15:34 -0700 |
commit | 54ec332c2ff2e1c853a8b55b3aa55419b718e709 (patch) | |
tree | 755447be8ce76228385edee453a61660da838c46 /git-access.c | |
parent | 06d6ca94f3b0a70242ea4b22fbb0668351896804 (diff) | |
download | subsurface-54ec332c2ff2e1c853a8b55b3aa55419b718e709.tar.gz |
Cloud storage: verbose output to console
If Subsurface is started with the verbose flag, also give progress
information on the consol (just in case there are issues with the progress
dialog).
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'git-access.c')
-rw-r--r-- | git-access.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/git-access.c b/git-access.c index 69ff5aaad..4c5244a36 100644 --- a/git-access.c +++ b/git-access.c @@ -56,9 +56,14 @@ void set_git_update_cb(int(*cb)(int)) static int update_progress(int percent) { + static int last_percent = -10; int ret = 0; if (update_progress_cb) ret = (*update_progress_cb)(percent); + if (verbose && percent - 10 >= last_percent) { + last_percent = percent; + fprintf(stderr, "git progress %d%%\n", percent); + } return ret; } |