diff options
author | Jeff King <peff@peff.net> | 2011-02-24 09:28:41 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-03-08 12:12:04 -0800 |
commit | 06796607ef557e8913f1797cca3c98ce4844c36c (patch) | |
tree | c1b691bb3736e8e377822915392460342be3a9f6 /cache.h | |
parent | c6053543f288f503b39e946ef58bfcd59f935b5f (diff) | |
download | git-06796607ef557e8913f1797cca3c98ce4844c36c.tar.gz git-06796607ef557e8913f1797cca3c98ce4844c36c.tar.xz |
trace: refactor to support multiple env variables
Right now you turn all tracing off and on with GIT_TRACE. To
support new types of tracing without forcing the user to see
all of them, we will soon support turning each tracing area
on with GIT_TRACE_*.
This patch lays the groundwork by providing an interface
which does not assume GIT_TRACE. However, we still maintain
the trace_printf interface so that existing callers do not
need to be refactored.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1067,7 +1067,7 @@ extern void alloc_report(void); /* trace.c */ __attribute__((format (printf, 1, 2))) extern void trace_printf(const char *format, ...); -extern void trace_vprintf(const char *format, va_list ap); +extern void trace_vprintf(const char *key, const char *format, va_list ap); __attribute__((format (printf, 2, 3))) extern void trace_argv_printf(const char **argv, const char *format, ...); extern void trace_repo_setup(const char *prefix); |