diff options
author | Taylor Blau <me@ttaylorr.com> | 2020-09-09 15:22:56 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-09-09 19:51:48 (GMT) |
commit | ab14d0676c58389e6f0ccbb9569b07045a05b6df (patch) | |
tree | e2713ff04c0f12ded3be1fecd1f5a9c59c74b18e /commit-graph.h | |
parent | 025d52943e89ad01791bb5c4db106b87ebfe3889 (diff) | |
download | git-ab14d0676c58389e6f0ccbb9569b07045a05b6df.zip git-ab14d0676c58389e6f0ccbb9569b07045a05b6df.tar.gz git-ab14d0676c58389e6f0ccbb9569b07045a05b6df.tar.bz2 |
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 0677dd1..d9acb22 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 |