Merge branch 'sg/index-pack-progress'
A progress indicator has been added to the "index-pack" step, which often makes users wait for completion during "git clone". * sg/index-pack-progress: index-pack: show progress while checking objects
This commit is contained in:
commit
da924b58ed
@ -219,8 +219,16 @@ static unsigned check_objects(void)
|
||||
unsigned i, max, foreign_nr = 0;
|
||||
|
||||
max = get_max_object_index();
|
||||
for (i = 0; i < max; i++)
|
||||
|
||||
if (verbose)
|
||||
progress = start_delayed_progress(_("Checking objects"), max);
|
||||
|
||||
for (i = 0; i < max; i++) {
|
||||
foreign_nr += check_object(get_indexed_object(i));
|
||||
display_progress(progress, i + 1);
|
||||
}
|
||||
|
||||
stop_progress(&progress);
|
||||
return foreign_nr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user