mirror of
https://github.com/restic/restic.git
synced 2026-09-02 02:37:14 +00:00
implement progress bar for index loading
This commit is contained in:
committed by
Michael Eischer
parent
eac1c4a8d0
commit
ed65a7dbca
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user