hide index loading progress for JSON output

This commit is contained in:
Michael Eischer
2023-10-01 19:53:26 +02:00
parent 3fd0ad7448
commit 75f6bd89ed
15 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -363,7 +363,7 @@ 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())
}
bar := newProgressMax(!gopts.Quiet, 0, "index files loaded")
bar := newProgressMax(!gopts.Quiet && !gopts.JSON, 0, "index files loaded")
if err = repo.LoadIndex(ctx, bar); err != nil {
return err
}