]> git.ipfire.org Git - thirdparty/git.git/commit
progress: assemble percentage and counters in a strbuf before printing
authorSZEDER Gábor <szeder.dev@gmail.com>
Fri, 5 Apr 2019 00:45:37 +0000 (02:45 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Apr 2019 06:02:06 +0000 (15:02 +0900)
commitd53ba841d4feec0096f5f019ae2d304f1edd226e
treee5690e417e14561222a884ee048cd8e13af7b720
parent9219d12777baf67e001329cad98fa21c55d46b2e
progress: assemble percentage and counters in a strbuf before printing

The following patches in this series want to handle the progress bar's
title and changing parts (i.e. the counter and the optional percentage
and throughput combined) differently, and need to know the length
of the changing parts of the previously displayed progress bar.

To prepare for those changes assemble the changing parts in a separate
strbuf kept in 'struct progress' before printing.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
progress.c