author | Christian Couder <chriscool@tuxfamily.org> | |
Thu, 31 Aug 2006 06:42:11 +0000 (08:42 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 31 Aug 2006 21:16:38 +0000 (14:16 -0700) | ||
commit | 7cf67205ca68a157c6ffdb4e5a4ff231217c0871 | |
tree | f0b8a3170cf5abcc5e448e8d1c58ccae7bfc940c | tree | snapshot |
parent | 2c6d22df9f8a975c88fc9a93c4db8bb0bd116b74 | commit | diff |
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>
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 | diff | blob | history | |
cache.h | diff | blob | history | |
exec_cmd.c | diff | blob | history | |
git.c | diff | blob | history | |
imap-send.c | diff | blob | history | |
quote.c | diff | blob | history | |
quote.h | diff | blob | history | |
t/test-lib.sh | diff | blob | history | |
trace.c | [new file with mode: 0644] | blob |
write_or_die.c | diff | blob | history |