git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] commit-graph: when incompatible with graphs, indicate why

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 11, 2021, 17:32 UTC
Message-ID
<xmqq5z2yy0ga.fsf@gitster.c.googlers.com>
In-Reply-To
<aa368496-2875-c383-e862-06e9c587af60@gmail.com>
Derrick Stolee <stolee@gmail.com> writes:
Show 21 quoted lines
> On 2/11/21 10:39 AM, Johannes Schindelin via GitGitGadget wrote:
>> From: Johannes Schindelin <johannes.schindelin@gmx.de>
>> 
>> When `gc.writeCommitGraph = true`, it is possible that the commit-graph
>> is _still_ not written: replace objects, grafts and shallow repositories
>> are incompatible with the commit-graph feature.
>> 
>> Under such circumstances, we need to indicate to the user why the
>> commit-graph was not written instead of staying silent about it.
>
> This feedback is valuable for these corner cases, especially now
> that the commit-graph is getting less and less "optional" as time
> goes on.
>
>> +		if (hashmap_get_size(&r->objects->replace_map->map)) {
>> +			warning(_("repository contains replace objects; "
>> +			       "skipping commit-graph"));
> ...
>> +		warning(_("repository is shallow; skipping commit-graph"));
>
> These warnings make sense to me.
I take that as your Acked-by.
Thanks, both.
Previous: Derrick StoleeNext: Ævar Arnfjörð Bjarmason
Message 3 of 4 in “commit-graph: when incompatible with graphs, indicate why”
  1. commit-graph: when incompatible with graphs, indicate whyJohannes Schindelin via GitGitGadget, Feb 11, 2021
  2. Derrick StoleeFeb 11, 2021
  3. Junio C HamanoFeb 11, 2021
  4. noisy "warning: repository contains (deprecated) grafts; skipping commit-graph" warningsÆvar Arnfjörð Bjarmason, Feb 25, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.