diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-06-25 13:22:38 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-06-25 13:22:38 -0700 |
commit | 110240588d5c0ca88d3b55da52068f59d8d6367d (patch) | |
tree | 5a9120c2c70aeb9d2e7ac4347870094870019e49 /blame.c | |
parent | Merge branch 'jk/show-index' (diff) | |
parent | alloc: allow arbitrary repositories for alloc functions (diff) | |
download | tgif-110240588d5c0ca88d3b55da52068f59d8d6367d.tar.xz |
Merge branch 'sb/object-store-alloc'
The conversion to pass "the_repository" and then "a_repository"
throughout the object access API continues.
* sb/object-store-alloc:
alloc: allow arbitrary repositories for alloc functions
object: allow create_object to handle arbitrary repositories
object: allow grow_object_hash to handle arbitrary repositories
alloc: add repository argument to alloc_commit_index
alloc: add repository argument to alloc_report
alloc: add repository argument to alloc_object_node
alloc: add repository argument to alloc_tag_node
alloc: add repository argument to alloc_commit_node
alloc: add repository argument to alloc_tree_node
alloc: add repository argument to alloc_blob_node
object: add repository argument to grow_object_hash
object: add repository argument to create_object
repository: introduce parsed objects field
Diffstat (limited to 'blame.c')
-rw-r--r-- | blame.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -6,6 +6,7 @@ #include "diffcore.h" #include "tag.h" #include "blame.h" +#include "alloc.h" #include "commit-slab.h" define_commit_slab(blame_suspects, struct blame_origin *); @@ -179,7 +180,7 @@ static struct commit *fake_working_tree_commit(struct diff_options *opt, read_cache(); time(&now); - commit = alloc_commit_node(); + commit = alloc_commit_node(the_repository); commit->object.parsed = 1; commit->date = now; parent_tail = &commit->parents; |