]> git.ipfire.org Git - thirdparty/git.git/commit - progress.c
progress: create GIT_PROGRESS_DELAY
authorDerrick Stolee <dstolee@microsoft.com>
Mon, 25 Nov 2019 21:28:22 +0000 (21:28 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Nov 2019 01:57:10 +0000 (10:57 +0900)
commit44a4693bfcec1876b29cdaec3625819d80ea1280
treecdfa2be639efb37f30f35351adf4f397ec12eee6
parentd9f6f3b6195a0ca35642561e530798ad1469bd41
progress: create GIT_PROGRESS_DELAY

The start_delayed_progress() method is a preferred way to show
optional progress to users as it ignores steps that take less
than two seconds. However, this makes testing unreliable as tests
expect to be very fast.

In addition, users may want to decrease or increase this time
interval depending on their preferences for terminal noise.

Create the GIT_PROGRESS_DELAY environment variable to control
the delay set during start_delayed_progress(). Set the value
in some tests to guarantee their output remains consistent.

Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git.txt
progress.c
t/t5318-commit-graph.sh
t/t6500-gc.sh