diff options
author | Jeff Hostetler <jeffhost@microsoft.com> | 2019-03-21 12:36:11 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-03-22 14:31:11 +0900 |
commit | 9d81ecb52b5e6611f66c968884dde42928350b18 (patch) | |
tree | 762baf04aebc7ddffe2dc196e7a3946c4a086867 /t/diff-lib/COPYING | |
parent | The third batch (diff) | |
download | tgif-9d81ecb52b5e6611f66c968884dde42928350b18.tar.xz |
progress: add sparse mode to force 100% complete message
Add new start_sparse_progress() and start_delayed_sparse_progress()
constructors and "sparse" flag to struct progress.
Teach stop_progress() to force a 100% complete progress message before
printing the final "done" message when "sparse" is set.
Calling display_progress() for every item in a large set can
be expensive. If callers try to filter this for performance
reasons, such as emitting every k-th item, progress would
not reach 100% unless they made a final call to display_progress()
with the item count before calling stop_progress().
Now this is automatic when "sparse" is set.
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/diff-lib/COPYING')
0 files changed, 0 insertions, 0 deletions