Thread (1 message) 1 message, 1 author, 2021-02-11

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

From: Junio C Hamano <hidden>
Date: 2021-02-11 17:38:39

Derrick Stolee [off-list ref] writes:
On 2/11/21 10:39 AM, Johannes Schindelin via GitGitGadget wrote:
quoted
From: Johannes Schindelin <redacted>

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.
quoted
+		if (hashmap_get_size(&r->objects->replace_map->map)) {
+			warning(_("repository contains replace objects; "
+			       "skipping commit-graph"));
...
quoted
+		warning(_("repository is shallow; skipping commit-graph"));
These warnings make sense to me.
I take that as your Acked-by.

Thanks, both.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help