Subject: Re: [RFC PATCH] Re: Empty directories...

From: Matthieu Moy <[email-masked]>
Date: Thu, 19 Jul 2007 10:13:22 +0200

"Shawn O. Pearce" <[email-masked]> writes:

> 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