From: Christian Couder <chriscool@tuxfamily.org>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Fix tracing when GIT_TRACE is set to an empty string.
Date: Sat, 14 Oct 2006 21:55:32 +0200 [thread overview]
Message-ID: <200610142155.32816.chriscool@tuxfamily.org> (raw)
In-Reply-To: <7vodseahty.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
> Christian Couder <chriscool@tuxfamily.org> writes:
> > Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
> > ---
> > trace.c | 3 ++-
> > 1 files changed, 2 insertions(+), 1 deletions(-)
> >
> > diff --git a/trace.c b/trace.c
> > index f9efc91..495e5ed 100644
> > --- a/trace.c
> > +++ b/trace.c
> > @@ -55,7 +55,8 @@ static int get_trace_fd(int *need_close)
> > {
> > char *trace = getenv("GIT_TRACE");
> >
> > - if (!trace || !strcmp(trace, "0") || !strcasecmp(trace, "false"))
> > + if (!trace || !strcmp(trace, "") ||
> > + !strcmp(trace, "0") || !strcasecmp(trace, "false"))
> > return 0;
> > if (!strcmp(trace, "1") || !strcasecmp(trace, "true"))
> > return STDERR_FILENO;
> > --
> > 1.4.3.rc2.gadba
>
> This means that
>
> GIT_TRACE= git-foo
> and
> unset GIT_TRACE ; git-foo
>
> should behave the same way, right?
Yes, that's the goal of this patch.
> If so that sounds sensible.
Thanks,
Christian.
prev parent reply other threads:[~2006-10-14 19:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-14 14:05 [PATCH] Fix tracing when GIT_TRACE is set to an empty string Christian Couder
2006-10-14 18:11 ` Junio C Hamano
2006-10-14 19:55 ` Christian Couder [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200610142155.32816.chriscool@tuxfamily.org \
--to=chriscool@tuxfamily.org \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).