Subject: Re: [PATCH v4 2/2] commit-graph: don't write commit-graph when disabled

From: Junio C Hamano <[email-masked]>
Date: Fri, 09 Oct 2020 14:12:59 -0700

"Derrick Stolee via GitGitGadget" <[email-masked]> 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.