diff options
author | Patrick Steinhardt <ps@pks.im> | 2025-08-15 07:49:50 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-08-15 09:34:47 -0700 |
commit | 89cc9b9adf31729c91aa94c178b44b45febd260f (patch) | |
tree | b2652e69ff51942c1cea7714f91cb57673ce28f5 /builtin/commit-graph.c | |
parent | f1141b43911441f3c5d0fda49d05a6433da372a3 (diff) |
commit-graph: stop using `the_hash_algo`
Stop using `the_hash_algo` as it implicitly relies on `the_repository`.
Instead, we either use the hash algo provided via the context or, if
there is no such hash algo, we use `the_repository` explicitly. Such
uses will be removed in subsequent commits.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
-rw-r--r-- | builtin/commit-graph.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/commit-graph.c b/builtin/commit-graph.c index 4992ac146e..f5c6f863a5 100644 --- a/builtin/commit-graph.c +++ b/builtin/commit-graph.c @@ -109,7 +109,8 @@ static int graph_verify(int argc, const char **argv, const char *prefix, opened = OPENED_GRAPH; else if (errno != ENOENT) die_errno(_("Could not open commit-graph '%s'"), graph_name); - else if (open_commit_graph_chain(chain_name, &fd, &st)) + else if (open_commit_graph_chain(chain_name, &fd, &st, + the_repository->hash_algo)) opened = OPENED_CHAIN; else if (errno != ENOENT) die_errno(_("could not open commit-graph chain '%s'"), chain_name); |