diff options
author | Taylor Blau <me@ttaylorr.com> | 2020-09-09 11:22:56 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-09-09 12:51:48 -0700 |
commit | ab14d0676c58389e6f0ccbb9569b07045a05b6df (patch) | |
tree | e2713ff04c0f12ded3be1fecd1f5a9c59c74b18e /commit-graph.h | |
parent | t4216: use an '&&'-chain (diff) | |
download | tgif-ab14d0676c58389e6f0ccbb9569b07045a05b6df.tar.xz |
commit-graph: pass a 'struct repository *' in more places
In a future commit, some commit-graph internals will want access to
'r->settings', but we only have the 'struct object_directory *'
corresponding to that repository.
Add an additional parameter to pass the repository around in more
places.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.h')
-rw-r--r-- | commit-graph.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/commit-graph.h b/commit-graph.h index 0677dd1031..d9acb22bac 100644 --- a/commit-graph.h +++ b/commit-graph.h @@ -75,11 +75,13 @@ struct commit_graph { struct bloom_filter_settings *bloom_filter_settings; }; -struct commit_graph *load_commit_graph_one_fd_st(int fd, struct stat *st, +struct commit_graph *load_commit_graph_one_fd_st(struct repository *r, + int fd, struct stat *st, struct object_directory *odb); struct commit_graph *read_commit_graph_one(struct repository *r, struct object_directory *odb); -struct commit_graph *parse_commit_graph(void *graph_map, size_t graph_size); +struct commit_graph *parse_commit_graph(struct repository *r, + void *graph_map, size_t graph_size); /* * Return 1 if and only if the repository has a commit-graph |