summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-03-19 23:24:12 -0700
committerJunio C Hamano <gitster@pobox.com>2011-03-19 23:24:12 -0700
commit0d7f242110dc71666780a85fca14fbc8223879d4 (patch)
tree3154b4ef00a4b665f7b1dc94be1fa313c8db58cd /cache.h
parentdc7f96f1f4a071150d2c817e6ca72ecfb7edd72d (diff)
parent7e2342d0987f7f78bc8582e97bbfbafd80d327ef (diff)
downloadgit-0d7f242110dc71666780a85fca14fbc8223879d4.tar.gz
Merge branch 'jk/trace-sifter'
* jk/trace-sifter: trace: give repo_setup trace its own key add packet tracing debug code trace: add trace_strbuf trace: factor out "do we want to trace" logic trace: refactor to support multiple env variables trace: add trace_vprintf
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index a99fd560e9..fad2117bf9 100644
--- a/cache.h
+++ b/cache.h
@@ -1083,9 +1083,14 @@ 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 *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);
+extern int trace_want(const char *key);
+extern void trace_strbuf(const char *key, const struct strbuf *buf);
+
+void packet_trace_identity(const char *prog);
/* convert.c */
/* returns 1 if *dst was used */