implement progress bar for index loading

This commit is contained in:
arjunajesh
2023-10-01 19:52:59 +02:00
committed by Michael Eischer
parent eac1c4a8d0
commit ed65a7dbca
24 changed files with 80 additions and 37 deletions
+2 -2
View File
@@ -363,8 +363,8 @@ func runDiff(ctx context.Context, opts DiffOptions, gopts GlobalOptions, args []
if !gopts.JSON {
Verbosef("comparing snapshot %v to %v:\n\n", sn1.ID().Str(), sn2.ID().Str())
}
if err = repo.LoadIndex(ctx); err != nil {
bar := newProgressMax(!gopts.Quiet, 0, "index files loaded")
if err = repo.LoadIndex(ctx, bar); err != nil {
return err
}