summaryrefslogtreecommitdiff
path: root/commit-graph.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-08-15 07:49:51 +0200
committerJunio C Hamano <gitster@pobox.com>2025-08-15 09:34:48 -0700
commitddacfc7466707cbe462594052261647b43868825 (patch)
tree2721411718b1c8cd3cd6f4fc96337610bc73218e /commit-graph.h
parent89cc9b9adf31729c91aa94c178b44b45febd260f (diff)
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>
Diffstat (limited to 'commit-graph.h')
-rw-r--r--commit-graph.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit-graph.h b/commit-graph.h
index df10daf01c..0a67ac9280 100644
--- a/commit-graph.h
+++ b/commit-graph.h
@@ -21,7 +21,7 @@
* call this method oustide of a builtin, and only if you know what
* you are doing!
*/
-void git_test_write_commit_graph_or_die(void);
+void git_test_write_commit_graph_or_die(struct odb_source *source);
struct commit;
struct bloom_filter_settings;