From: Junio C Hamano <gitster@pobox.com>
To: Miklos Vajna <vmiklos@frugalware.org>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] git-clean: handle errors if removing files fails
Date: Wed, 20 Feb 2008 16:12:16 -0800 [thread overview]
Message-ID: <7vodab182n.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <20080220234154.GS31441@genesis.frugalware.org> (Miklos Vajna's message of "Thu, 21 Feb 2008 00:41:54 +0100")
Miklos Vajna <vmiklos@frugalware.org> writes:
> Consider the following case:
>
> $ sudo mkdir foo
> $ sudo touch foo/bar
>
> This is the old output:
>
> $ git clean -f -d
> Removing foo/
>
> No error message.
>
> This is the new output:
>
> $ ~/git/git/git clean -f -d
> Removing foo/
> fatal: failed to remove 'foo/'
That's quite different style from the other commit log messages
in the project, isn't it?
While I agree reporting an error is definitely an improvement, I
do not think dying in the middle is the right thing to do.
Shouldn't it note the error, remove other cruft, and then
finally signal the error by exiting non-zero?
next prev parent reply other threads:[~2008-02-21 0:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-20 23:41 [PATCH] git-clean: handle errors if removing files fails Miklos Vajna
2008-02-21 0:12 ` Junio C Hamano [this message]
2008-02-21 1:44 ` Miklos Vajna
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=7vodab182n.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=vmiklos@frugalware.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.