From: Ross Lagerwall <rosslagerwall@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org, Clemens Buchacher <drizzd@aon.at>
Subject: Re: [PATCH v2] clean: add --null option
Date: Wed, 18 Apr 2012 18:59:14 +0200 [thread overview]
Message-ID: <4F8EF2E2.2080807@gmail.com> (raw)
In-Reply-To: <7vehrntowg.fsf@alter.siamese.dyndns.org>
On 04/16/2012 10:14 PM, Junio C Hamano wrote:
> I suspect that older days "git clean" was a scripted Porcelain around a
> plumbing (perhaps ls-files?---I didn't bother digging its history as I do
> not care too deeply about "git clean" which I do not use myself).
Do you just use ls-files directly?
> If we
> have piled so many features into "git clean" after the rewrite-to-C to
> make it impossible to express what "git clean" _would_ do in terms of
> "ls-files", perhaps that is what needs to be fixed, so that we can express
> "git clean --some-set-of-options" as:
>
> git ls-files -z --set-of-options-equivalent-to-what-is-given-to-clean |
> xargs -0 rm -fr
>
I agree that a --null option to git-clean is unnecessary if git-ls-files
is used. It seems like they can be made pretty much equivalent except
that git-ls-files doesn't seem to have a way of listing "only files" or
"only directories"?
--
Ross Lagerwall
prev parent reply other threads:[~2012-04-18 16:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-15 9:09 [PATCH v2] clean: add --null option Ross Lagerwall
2012-04-16 20:14 ` Junio C Hamano
2012-04-18 16:59 ` Ross Lagerwall [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=4F8EF2E2.2080807@gmail.com \
--to=rosslagerwall@gmail.com \
--cc=drizzd@aon.at \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/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).