trace: refactor to support multiple env variables
commit06796607ef557e8913f1797cca3c98ce4844c36c
authorJeff King <peff@peff.net>
Thu, 24 Feb 2011 14:28:41 +0000 (24 09:28 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Mar 2011 20:12:04 +0000 (8 12:12 -0800)
treec1b691bb3736e8e377822915392460342be3a9f6
parentc6053543f288f503b39e946ef58bfcd59f935b5f
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>
cache.h
trace.c