mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
59b6131a67
commit
bd0c0fb790
4
trace.h
4
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
|
||||
|
||||
Reference in New Issue
Block a user