]> git.ipfire.org Git - thirdparty/git.git/commit
progress.c: refactor stop_progress{,_msg}() to use helpers
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 3 Feb 2022 21:40:17 +0000 (22:40 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 3 Feb 2022 23:39:55 +0000 (15:39 -0800)
commitaccf1eb1d0f102c6b8f099fa6063216818e45c6b
treefdc8adec03a7ef6d0f64dcccae32c7b4df1e2c61
parent1ccad6a1f175080c3896a70501dcd6c9e0a0af0a
progress.c: refactor stop_progress{,_msg}() to use helpers

Create two new static helpers for the stop_progress() and
stop_progress_msg() functions.

As we'll see in the subsequent commit having those two split up
doesn't make much sense, and results in a bug in how we log to
trace2. This narrow preparatory change makes the diff for that
subsequent change smaller.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
progress.c