From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthieu Moy Subject: Re: [RFC PATCH] Re: Empty directories... Date: Thu, 19 Jul 2007 10:13:22 +0200 Message-ID: References: <85644hxujp.fsf@lola.goethe.zz> <85abttwa7m.fsf@lola.goethe.zz> <7vbqe93qtv.fsf@assigned-by-dhcp.cox.net> <20070719053858.GE32566@spearce.org> <20070719060922.GF32566@spearce.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Junio C Hamano , Linus Torvalds , David Kastrup , Johannes Schindelin , Git Mailing List To: "Shawn O. Pearce" X-From: git-owner@vger.kernel.org Thu Jul 19 10:51:34 2007 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1IBRjP-00077A-7G for gcvg-git@gmane.org; Thu, 19 Jul 2007 10:51:31 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759317AbXGSIv0 (ORCPT ); Thu, 19 Jul 2007 04:51:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757773AbXGSIv0 (ORCPT ); Thu, 19 Jul 2007 04:51:26 -0400 Received: from imag.imag.fr ([129.88.30.1]:43577 "EHLO imag.imag.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753025AbXGSIvY (ORCPT ); Thu, 19 Jul 2007 04:51:24 -0400 Received: from mail-veri.imag.fr (mail-veri.imag.fr [129.88.43.52]) by imag.imag.fr (8.13.8/8.13.8) with ESMTP id l6J8DNrk015642 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Thu, 19 Jul 2007 10:13:23 +0200 (CEST) Received: from bauges.imag.fr ([129.88.43.5]) by mail-veri.imag.fr with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1IBR8V-0002H1-1h; Thu, 19 Jul 2007 10:13:23 +0200 Received: from moy by bauges.imag.fr with local (Exim 4.63) (envelope-from ) id 1IBR8U-0003EZ-Ua; Thu, 19 Jul 2007 10:13:22 +0200 Mail-Followup-To: "Shawn O. Pearce" , Junio C Hamano , Linus Torvalds , David Kastrup , Johannes Schindelin , Git Mailing List In-Reply-To: <20070719060922.GF32566@spearce.org> (Shawn O. Pearce's message of "Thu\, 19 Jul 2007 02\:09\:22 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.97 (gnu/linux) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (imag.imag.fr [129.88.30.1]); Thu, 19 Jul 2007 10:13:24 +0200 (CEST) X-IMAG-MailScanner-Information: Please contact IMAG DMI for more information X-IMAG-MailScanner: Found to be clean X-IMAG-MailScanner-SpamCheck: X-IMAG-MailScanner-From: moy@imag.fr Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: "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