commit-graph: when incompatible with graphs, indicate why
commitc85eec7fc37e1ca79072f263ae6ea1ee305ba38c
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 11 Feb 2021 15:39:13 +0000 (11 15:39 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Feb 2021 17:33:01 +0000 (11 09:33 -0800)
tree6f131ee943998815cad7959a976be55d9a0ad798
parent773e25afc41b1b6533fa9ae2cd825d0b4a697fad
commit-graph: when incompatible with graphs, indicate why

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.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Acked-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit-graph.c