Trace into open fd and refactor tracing code.
commit7cf67205ca68a157c6ffdb4e5a4ff231217c0871
authorChristian Couder <chriscool@tuxfamily.org>
Thu, 31 Aug 2006 06:42:11 +0000 (31 08:42 +0200)
committerJunio C Hamano <junkio@cox.net>
Thu, 31 Aug 2006 21:16:38 +0000 (31 14:16 -0700)
treef0b8a3170cf5abcc5e448e8d1c58ccae7bfc940c
parent2c6d22df9f8a975c88fc9a93c4db8bb0bd116b74
Trace into open fd and refactor tracing code.

Now if GIT_TRACE is set to an integer value greater than 1
and lower than 10, we interpret this as an open fd value
and we trace into it. Note that this behavior is not
compatible with the previous one.

We also trace whole messages using one write(2) call to
make sure messages from processes do net get mixed up in
the middle.

It's now possible to run the tests like this:

GIT_TRACE=9 make test 9>/var/tmp/trace.log

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile
cache.h
exec_cmd.c
git.c
imap-send.c
quote.c
quote.h
t/test-lib.sh
trace.c [new file with mode: 0644]
write_or_die.c