Re: [PATCH v4 17/21] fsck: verify commit-graph

2018-06-06 Thread Derrick Stolee
On 6/6/2018 7:08 AM, Ævar Arnfjörð Bjarmason wrote: On Mon, Jun 04 2018, Derrick Stolee wrote: + prepare_alt_odb(); + for (alt = alt_odb_list; alt; alt = alt->next) { + verify_argv[2] = "--object-dir"; + verify_argv[3] =

Re: [PATCH v4 17/21] fsck: verify commit-graph

2018-06-06 Thread Ævar Arnfjörð Bjarmason
On Mon, Jun 04 2018, Derrick Stolee wrote: > + prepare_alt_odb(); > + for (alt = alt_odb_list; alt; alt = alt->next) { > + verify_argv[2] = "--object-dir"; > + verify_argv[3] = alt->path; > + if

[PATCH v4 17/21] fsck: verify commit-graph

2018-06-04 Thread Derrick Stolee
If core.commitGraph is true, verify the contents of the commit-graph during 'git fsck' using the 'git commit-graph verify' subcommand. Run this check on all alternates, as well. We use a new process for two reasons: 1. The subcommand decouples the details of loading and verifying a