Skip to content

fix v2.15 progress regression

Jeff King git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2progress: set default delay threshold to 100%, not 0%progress.c+1 -10 replies
2/2progress: drop delay-threshold codeprogress.c+5 -193 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] fix v2.15 progress regression
Quoted 10 lines · Junio C Hamano
Quoted 8 lines · Jeff King

So the minimal fix is actually:

progress.c +0 -0
index 289678d43d..b774cb1cd1 100644
@@ -229,7 +229,7 @@ static struct progress *start_progress_delay(const char *title, unsigned total,
 
Quoted 8 lines

progress.c static struct progress *start_progress_delay(const char *title, unsigned total, · line 233

Quoted 5 lines
progress.c +1 -1
 struct progress *start_delayed_progress(const char *title, unsigned total)
 {
-	return start_progress_delay(title, total, 0, 2);
+	return start_progress_delay(title, total, 100, 2);
 }

That makes a lot more sense to me (at least from a cursory comparison between the two approaches).

Here's what I think we should do: fix the bug in the minimal way, and then drop the useless code. It's worth doing in two steps, because we may decide to resurrect the feature later, and it would then just be a straight revert of the second commit.

[1/2]: progress: set default delay threshold to 100%, not 0% [2/2]: progress: drop delay-threshold code

 progress.c | 24 +++++-------------------
 1 file changed, 5 insertions(+), 19 deletions(-)

This regression is in v2.15, so this probably ought to go to maint (at least the first part, though I think the second should have no user-visible effects).

-Peff