format-patch: have progress option while generating patches
authorKevin Willford <kewillf@microsoft.com>
Thu, 10 Aug 2017 18:32:55 +0000 (14:32 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 Aug 2017 21:09:45 +0000 (14:09 -0700)
commit738e88a20cd4c73930a18c759ed6f5704e85109f
tree0ae89cac7126e582e9ab751b8f09414f5b1aeca4
parent4274c698f46a9bc45834c4904e7e113450c042fb
format-patch: have progress option while generating patches

When generating patches for the rebase command, if the user does
not realize the branch they are rebasing onto is thousands of
commits different, there is no progress indication after initial
rewinding message.

The progress meter as presented in this patch assumes the thousands of
patches to have a fine granularity as well as assuming to require all
the same amount of work/time for each, such that a steady progress bar
is achieved.

We do not want to estimate the time for each patch based e.g.
on their size or number of touched files (or parents) as that is too
expensive for just a progress meter.

This patch allows a progress option to be passed to format-patch
so that the user can be informed the progress of generating the
patch.  This option is then used by the rebase command when
calling format-patch.

Signed-off-by: Kevin Willford <kewillf@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-format-patch.txt
builtin/log.c