From: Christian Couder Date: Thu, 31 Aug 2006 06:42:11 +0000 (+0200) Subject: Trace into open fd and refactor tracing code. X-Git-Tag: v1.4.3-rc1~146 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7cf67205ca68a157c6ffdb4e5a4ff231217c0871;hp=7cf67205ca68a157c6ffdb4e5a4ff231217c0871;p=git.git 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 Signed-off-by: Junio C Hamano ---