]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/commit-graph.c
commit-graph: pass a 'struct repository *' in more places
authorTaylor Blau <me@ttaylorr.com>
Wed, 9 Sep 2020 15:22:56 +0000 (11:22 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Sep 2020 19:51:48 +0000 (12:51 -0700)
commitab14d0676c58389e6f0ccbb9569b07045a05b6df
treee2713ff04c0f12ded3be1fecd1f5a9c59c74b18e
parent025d52943e89ad01791bb5c4db106b87ebfe3889
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>
builtin/commit-graph.c
commit-graph.c
commit-graph.h
fuzz-commit-graph.c