From: Derrick Stolee Date: Mon, 20 Aug 2018 18:24:27 +0000 (+0000) Subject: commit-graph: not compatible with replace objects X-Git-Tag: v2.19.2~53^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/d6538246d3d4edbfbc9b0af6a2aa38552d35f7f1?hp=d6538246d3d4edbfbc9b0af6a2aa38552d35f7f1 commit-graph: not compatible with replace objects Create new method commit_graph_compatible(r) to check if a given repository r is compatible with the commit-graph feature. Fill the method with a check to see if replace-objects exist. Test this interaction succeeds, including ignoring an existing commit-graph and failing to write a new commit-graph. However, we do ensure that we write a new commit-graph by setting read_replace_refs to 0, thereby ignoring the replace refs. Signed-off-by: Derrick Stolee Signed-off-by: Junio C Hamano ---