Merge branch 'jc/simplify-progress'

The API to start showing progress meter after a short delay has
been simplified.

* jc/simplify-progress:
  progress: simplify "delayed" progress API
This commit is contained in:
Junio C Hamano
2017-08-24 10:20:02 -07:00
10 changed files with 20 additions and 19 deletions

View File

@ -1759,7 +1759,7 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
rev.add_signoff = do_signoff;
if (show_progress)
progress = start_progress_delay(_("Generating patches"), total, 0, 2);
progress = start_delayed_progress(_("Generating patches"), total);
while (0 <= --nr) {
int shown;
display_progress(progress, total - nr);