aboutsummaryrefslogtreecommitdiffstats
path: root/alloc.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-02-05 14:26:19 -0800
committerJunio C Hamano <gitster@pobox.com>2019-02-05 14:26:19 -0800
commit2ed3de439e2de9646e1501a46bc4fd80c977e611 (patch)
tree4b384ce7129b83b3af93ccd2d4ee8101f1ac93e7 /alloc.h
parentMerge branch 'nd/fetch-compact-update' (diff)
parentobject_as_type: initialize commit-graph-related fields of 'struct commit' (diff)
downloadgit-2ed3de439e2de9646e1501a46bc4fd80c977e611.tar.gz
git-2ed3de439e2de9646e1501a46bc4fd80c977e611.zip
Merge branch 'sg/object-as-type-commit-graph-fix'
The commit-graph facility did not work when in-core objects that are promoted from unknown type to commit (e.g. a commit that is accessed via a tag that refers to it) were involved, which has been corrected. * sg/object-as-type-commit-graph-fix: object_as_type: initialize commit-graph-related fields of 'struct commit'
Diffstat (limited to 'alloc.h')
-rw-r--r--alloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/alloc.h b/alloc.h
index ba356ed847..ed1071c11e 100644
--- a/alloc.h
+++ b/alloc.h
@@ -9,11 +9,11 @@ struct repository;
void *alloc_blob_node(struct repository *r);
void *alloc_tree_node(struct repository *r);
+void init_commit_node(struct repository *r, struct commit *c);
void *alloc_commit_node(struct repository *r);
void *alloc_tag_node(struct repository *r);
void *alloc_object_node(struct repository *r);
void alloc_report(struct repository *r);
-unsigned int alloc_commit_index(struct repository *r);
struct alloc_state *allocate_alloc_state(void);
void clear_alloc_state(struct alloc_state *s);