Re: [PATCH v4 2/2] commit-graph: don't write commit-graph when disabled
From: Junio C Hamano <hidden> Date: 2020-10-09 21:13:05
"Derrick Stolee via GitGitGadget" [off-list ref] writes:
+ if (!the_repository->settings.core_commit_graph) {
+ warning(_("attempting to write a commit-graph, but 'core.commitGraph' is disabled"));
+ return 0;
+ }
Makes sense. We probably would want to short-circuit invocation of
commit-graph related tasks in the maintenance by checking the
feature, if we are not already doing so.
Thanks.