mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
Also include direct dependencies (strbuf.h and git-compat-util.h for __attribute__) so that trace.h can be used independently of cache.h, e.g. in test programs. Signed-off-by: Karsten Blees <blees@dcon.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
18 lines
576 B
C
18 lines
576 B
C
#ifndef TRACE_H
|
|
#define TRACE_H
|
|
|
|
#include "git-compat-util.h"
|
|
#include "strbuf.h"
|
|
|
|
__attribute__((format (printf, 1, 2)))
|
|
extern void trace_printf(const char *format, ...);
|
|
__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);
|
|
__attribute__((format (printf, 2, 3)))
|
|
extern void trace_printf_key(const char *key, const char *fmt, ...);
|
|
extern void trace_strbuf(const char *key, const struct strbuf *buf);
|
|
|
|
#endif /* TRACE_H */
|