Re: [RFC PATCH] Re: Empty directories...
- From
Matthieu Moy <matthieu.moy@imag.fr>
- Date
- Jul 19, 2007, 08:13 UTC
- Message-ID
- <vpqvecgvmjh.fsf@bauges.imag.fr>
- In-Reply-To
- <20070719060922.GF32566@spearce.org>
"Shawn O. Pearce" <spearce@spearce.org> writes:
Show 8 quoted lines
> If I do: > > mkdir -p foo/bar > echo hello >foo/bar/world > git add foo > git -f rm foo/bar/world > > I never asked for foo/bar or foo to stay.
Well, outside git, if you do
$ mkdir -p foo/bar $ echo hello > foo/bar/world $ rm -f foo/bar/world
You didn't ask foo/bar to stay either, and still, it's quite natural to have it stay in your filesystem. So, the same way you'd have ran "rm -r foo", it seems reasonable to me to ask for "git-rm -r foo" if the user wants to get rid of foo/ itself.
-- Matthieu