]> git.ipfire.org Git - thirdparty/git.git/commit
commit-graph: stop using `the_repository`
authorPatrick Steinhardt <ps@pks.im>
Fri, 15 Aug 2025 05:49:51 +0000 (07:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Aug 2025 16:34:48 +0000 (09:34 -0700)
commitddacfc7466707cbe462594052261647b43868825
tree2721411718b1c8cd3cd6f4fc96337610bc73218e
parent89cc9b9adf31729c91aa94c178b44b45febd260f
commit-graph: stop using `the_repository`

There's still a bunch of uses of `the_repository` in "commit-graph.c",
which we want to stop using due to it being a global variable. Refactor
the code to stop using `the_repository` in favor of the repository
provided via the calling context.

This allows us to drop the `USE_THE_REPOSITORY_VARIABLE` macro.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c
builtin/merge.c
commit-graph.c
commit-graph.h