Merge branch 'tb/fsck-no-progress'
"git fsck --no-progress" still spewed noise from the commit-graph subsystem, which has been corrected. * tb/fsck-no-progress: commit-graph.c: avoid duplicated progress output during `verify` commit-graph.c: pass progress to `verify_one_commit_graph()` commit-graph.c: iteratively verify commit-graph chains commit-graph.c: extract `verify_one_commit_graph()` fsck: suppress MIDX output with `--no-progress` fsck: suppress commit-graph output with `--no-progress`
This commit is contained in:
@ -1074,6 +1074,10 @@ int cmd_fsck(int argc, const char **argv, const char *prefix)
|
||||
commit_graph_verify.git_cmd = 1;
|
||||
strvec_pushl(&commit_graph_verify.args, "commit-graph",
|
||||
"verify", "--object-dir", odb->path, NULL);
|
||||
if (show_progress)
|
||||
strvec_push(&commit_graph_verify.args, "--progress");
|
||||
else
|
||||
strvec_push(&commit_graph_verify.args, "--no-progress");
|
||||
if (run_command(&commit_graph_verify))
|
||||
errors_found |= ERROR_COMMIT_GRAPH;
|
||||
}
|
||||
@ -1088,6 +1092,10 @@ int cmd_fsck(int argc, const char **argv, const char *prefix)
|
||||
midx_verify.git_cmd = 1;
|
||||
strvec_pushl(&midx_verify.args, "multi-pack-index",
|
||||
"verify", "--object-dir", odb->path, NULL);
|
||||
if (show_progress)
|
||||
strvec_push(&midx_verify.args, "--progress");
|
||||
else
|
||||
strvec_push(&midx_verify.args, "--no-progress");
|
||||
if (run_command(&midx_verify))
|
||||
errors_found |= ERROR_MULTI_PACK_INDEX;
|
||||
}
|
||||
|
Reference in New Issue
Block a user