summaryrefslogtreecommitdiffstats
path: root/git-access.c
diff options
context:
space:
mode:
Diffstat (limited to 'git-access.c')
-rw-r--r--git-access.c5
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;
}