]> git.ipfire.org Git - thirdparty/git.git/blobdiff - trace.c
Merge branch 'dt/name-hash-dir-entry-fix' into maint
[thirdparty/git.git] / trace.c
diff --git a/trace.c b/trace.c
index 3c3bd8fc98742075d6adc673ed2abc4f7e715b62..7393926ebcd95404fe16cdd84e40fd4f1bb02f40 100644 (file)
--- a/trace.c
+++ b/trace.c
@@ -120,6 +120,13 @@ static int prepare_trace_line(const char *file, int line,
        return 1;
 }
 
+void trace_verbatim(struct trace_key *key, const void *buf, unsigned len)
+{
+       if (!trace_want(key))
+               return;
+       write_or_whine_pipe(get_trace_fd(key), buf, len, err_msg);
+}
+
 static void print_trace_line(struct trace_key *key, struct strbuf *buf)
 {
        strbuf_complete_line(buf);