From: sean <seanlkml@sympatico.ca>
To: "Peter Eriksen" <s022018@student.dtu.dk>
Cc: git@vger.kernel.org
Subject: Re: Recursive remove
Date: Fri, 13 Jan 2006 09:03:01 -0500 [thread overview]
Message-ID: <BAYC1-PASMTP095A70114DD0A50FA6CAFAAE260@CEZ.ICE> (raw)
Message-ID: <20060113090301.10e08670.seanlkml@sympatico.ca> (raw)
In-Reply-To: <20060113132119.GB23655@ebar091.ebar.dtu.dk>
On Fri, 13 Jan 2006 14:21:19 +0100
"Peter Eriksen" <s022018@student.dtu.dk> wrote:
> Hello,
>
> A way to recursively remove a directory /Some/Dir/ is a follows:
>
> git ls-files -z Some/Dir >rmfiles
> git update-index -z --force-remove --stdin <rmfiles
> git commit -a -m "Remove directory Some/Dir"
> rm -rf Some/Dir
>
> What is a better way to do it?
>
Hi Peter,
The following is a bit more concise but not better than your version:
rm -rf Some/Dir
git ls-files -z -d Some/Dir | git-update-index -z --remove --stdin
git commit -m "Remove directory Some/Dir"
Git could stand to have an "rm" command to make this easier.
Sean
next prev parent reply other threads:[~2006-01-13 14:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-13 13:21 Recursive remove Peter Eriksen
[not found] ` <20060113090301.10e08670.seanlkml@sympatico.ca>
2006-01-13 14:03 ` sean [this message]
2006-01-13 17:37 ` Junio C Hamano
[not found] ` <20060113125604.4ec91466.seanlkml@sympatico.ca>
2006-01-13 17:56 ` sean
2006-01-13 19:51 ` Junio C Hamano
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=BAYC1-PASMTP095A70114DD0A50FA6CAFAAE260@CEZ.ICE \
--to=seanlkml@sympatico.ca \
--cc=git@vger.kernel.org \
--cc=s022018@student.dtu.dk \
/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).