aboutsummaryrefslogtreecommitdiff
path: root/trace.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-12-17 07:43:50 +0100
committerJunio C Hamano <gitster@pobox.com>2024-12-18 10:44:30 -0800
commitbd0c0fb790dcb6cd32a585e1d9fcb0a4a4f7379b (patch)
tree106b99f27572abbb1b4b04db2b37a4896f624dcb /trace.h
parent59b6131a677b0b45fb7fd54ba60dbf689b0a1797 (diff)
downloadgit-bd0c0fb790dcb6cd32a585e1d9fcb0a4a4f7379b.tar.xz
trace: stop using `the_repository`
Stop using `the_repository` in the "trace" subsystem by passing in a repository when setting up tracing. Adjust the only caller accordingly. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trace.h')
-rw-r--r--trace.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/trace.h b/trace.h
index d304d55aa1..9152fe9b3e 100644
--- a/trace.h
+++ b/trace.h
@@ -92,7 +92,9 @@ extern struct trace_key trace_default_key;
extern struct trace_key trace_perf_key;
extern struct trace_key trace_setup_key;
-void trace_repo_setup(void);
+struct repository;
+
+void trace_repo_setup(struct repository *r);
/**
* Checks whether the trace key is enabled. Used to prevent expensive