diff options
author | Jeff King <peff@peff.net> | 2011-02-24 09:29:50 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-03-08 12:12:04 -0800 |
commit | 94b3b3746456949d834ec7bf454da3db4eb439cf (patch) | |
tree | 1dc8aaf5084f6c435fb5124debcd782bff7786ec /cache.h | |
parent | 39bc5e4680a1ed7192968fbe9f5784ad56ecbd36 (diff) | |
download | git-94b3b3746456949d834ec7bf454da3db4eb439cf.tar.gz git-94b3b3746456949d834ec7bf454da3db4eb439cf.tar.xz |
trace: add trace_strbuf
If you happen to have a strbuf, it is a little more readable
and a little more efficient to be able to print it directly
instead of jamming it through the trace_printf interface.
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 | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1072,6 +1072,7 @@ __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); /* convert.c */ /* returns 1 if *dst was used */ |