summaryrefslogtreecommitdiff
path: root/replace-object.h
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2018-08-20 18:24:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-08-21 17:22:51 (GMT)
commitd6538246d3d4edbfbc9b0af6a2aa38552d35f7f1 (patch)
tree9a21c3365c28466618eec17ef374aa77d6074c99 /replace-object.h
parentb7758963424e238b9152f0c9991325ff7fdffff1 (diff)
downloadgit-d6538246d3d4edbfbc9b0af6a2aa38552d35f7f1.zip
git-d6538246d3d4edbfbc9b0af6a2aa38552d35f7f1.tar.gz
git-d6538246d3d4edbfbc9b0af6a2aa38552d35f7f1.tar.bz2
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 <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'replace-object.h')
-rw-r--r--replace-object.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/replace-object.h b/replace-object.h
index 9345e10..16528df 100644
--- a/replace-object.h
+++ b/replace-object.h
@@ -10,6 +10,8 @@ struct replace_object {
struct object_id replacement;
};
+void prepare_replace_object(struct repository *r);
+
/*
* This internal function is only declared here for the benefit of
* lookup_replace_object(). Please do not call it directly.