From: Matthieu Moy Date: Thu, 19 Jul 2007 08:13:22 GMT Subject: Re: [RFC PATCH] Re: Empty directories... Message-ID: In-Reply-To: <20070719060922.GF32566@spearce.org> "Shawn O. Pearce" 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