From: Matthias Lederhofer <matled@gmx.net>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 3/5] Clean up work-tree handling
Date: Fri, 27 Jul 2007 00:09:49 +0200 [thread overview]
Message-ID: <20070726220949.GA4420@moooo.ath.cx> (raw)
In-Reply-To: <Pine.LNX.4.64.0707260729150.14781@racer.site>
I try to take a closer look at your changes tomorrow evening. Here
are just two short things I saw while taking a short look at the
patch.
Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> +const char *get_git_work_tree(void)
> +{
> + static int initialized = 0;
> + if (!initialized) {
> + work_tree = getenv(GIT_WORK_TREE_ENVIRONMENT);
> + if (!work_tree) {
> + work_tree = git_work_tree_cfg;
> + if (work_tree && !is_absolute_path(work_tree))
> + work_tree = git_path(work_tree);
A tab is missing here.
> - fprintf(stderr, "No directory given for --work-tree.\n" );
> + error("No directory given for --work-tree.\n");
There should probably be no '\n' at the end when the 'error' function
is used. There are two other calls to fprintf(stderr, <error message>)
next to the one you changed, why did you change this one but not the
other ones?
next prev parent reply other threads:[~2007-07-26 22:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-26 6:30 [PATCH 3/5] Clean up work-tree handling Johannes Schindelin
2007-07-26 6:56 ` Shawn O. Pearce
2007-07-26 7:06 ` Junio C Hamano
2007-07-26 14:01 ` Johannes Schindelin
2007-07-26 18:56 ` Junio C Hamano
2007-07-26 22:09 ` Matthias Lederhofer [this message]
2007-07-26 22:31 ` Junio C Hamano
2007-07-27 10:50 ` Johannes Schindelin
2007-07-27 19:20 ` Junio C Hamano
2007-07-27 19:32 ` Johannes Schindelin
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=20070726220949.GA4420@moooo.ath.cx \
--to=matled@gmx.net \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
/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).