]> git.ipfire.org Git - thirdparty/git.git/commit
index-pack: show progress while checking objects
authorSZEDER Gábor <szeder.dev@gmail.com>
Sun, 31 Mar 2019 23:12:35 +0000 (01:12 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Apr 2019 09:08:05 +0000 (18:08 +0900)
commit79e3aa66244af40bd3c8999e00308f96748367d0
tree2096ff838ec6abb6927b3fbd0ab54e92a643006c
parent041f5ea1cf987a4068ef5f39ba0a09be85952064
index-pack: show progress while checking objects

When 'git index-pack' is run by 'git clone', its check_objects()
function usually doesn't take long enough to be a concern, but I just
run into a situation where it took about a minute or so: I
inadvertently put some memory pressure on my tiny laptop while cloning
linux.git, and then there was quite a long silence between the
"Resolving deltas" and "Checking connectivity" progress bars.

Show a progress bar during the loop of check_objects() to let the user
know that something is still going on.

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