4 #include "git-compat-util.h"
8 const char * const key;
10 unsigned int initialized : 1;
11 unsigned int need_close : 1;
14 #define TRACE_KEY_INIT(name) { "GIT_TRACE_" #name, 0, 0, 0 }
16 extern void trace_repo_setup(const char *prefix);
17 extern int trace_want(struct trace_key *key);
18 extern void trace_disable(struct trace_key *key);
20 __attribute__((format (printf, 1, 2)))
21 extern void trace_printf(const char *format, ...);
23 __attribute__((format (printf, 2, 3)))
24 extern void trace_printf_key(struct trace_key *key, const char *format, ...);
26 __attribute__((format (printf, 2, 3)))
27 extern void trace_argv_printf(const char **argv, const char *format, ...);
29 extern void trace_strbuf(struct trace_key *key, const struct strbuf *data);