From: Carl Worth Subject: Re: How to commit removed file? Date: Tue, 02 Jan 2007 16:55:28 -0800 Message-ID: <87lkklgc8v.wl%cworth@cworth.org> References: <20061231102444.GD26552@mellanox.co.il> <20070102201041.GB10451@mellanox.co.il> <7vfyatt8di.fsf@assigned-by-dhcp.cox.net> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Tue_Jan__2_16:55:28_2007-1"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Cc: Johannes Schindelin , git@vger.kernel.org, "Michael S. Tsirkin" X-From: git-owner@vger.kernel.org Sat Jan 06 02:34:36 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 1H30S7-0004dh-RU for gcvg-git@gmane.org; Sat, 06 Jan 2007 02:34:32 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751064AbXAFBeX (ORCPT ); Fri, 5 Jan 2007 20:34:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751065AbXAFBeX (ORCPT ); Fri, 5 Jan 2007 20:34:23 -0500 Received: from cworth.org ([217.160.249.188]:39737 "EHLO theworths.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751061AbXAFBeW (ORCPT ); Fri, 5 Jan 2007 20:34:22 -0500 Received: (qmail 28134 invoked from network); 5 Jan 2007 20:34:20 -0500 Received: from localhost (HELO raht.cworth.org) (127.0.0.1) by localhost with SMTP; 5 Jan 2007 20:34:20 -0500 To: Junio C Hamano In-Reply-To: <7vfyatt8di.fsf@assigned-by-dhcp.cox.net> User-Agent: Wanderlust/2.14.0 (Africa) Emacs/21.4 Mule/5.0 (SAKAKI) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: --pgp-sign-Multipart_Tue_Jan__2_16:55:28_2007-1 Content-Type: text/plain; charset=US-ASCII On Tue, 02 Jan 2007 13:40:41 -0800, Junio C Hamano wrote: > Personally I never saw the point of having "git rm". Maybe we > should remove it to prevent this confusion from happening. The one place where it's really "necessary", (as opposed to some users just expecting it to be there), is to "undo" a git-add, (and I mean a git-add that actually adds a new path to the index, not one of these newfangled git-adds that simply updates content for an existing path). For that scenario, without git-rm, the user would be forced to learn how to use git-update-index to solve this problem. (And note, that this is also the one case where it's the _right_ thing for git-rm to actually leave the file around. I haven't checked to see if the latest round of git-rm semantic cleanups still handle this use case correctly.) -Carl --pgp-sign-Multipart_Tue_Jan__2_16:55:28_2007-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFmv8A6JDdNq8qSWgRAoVTAJ9H0K81H6afcybyh1Ae/GSfGPpnHQCgoDMQ 4I64KrkRZDApWE8xwzMEndg= =YXEB -----END PGP SIGNATURE----- --pgp-sign-Multipart_Tue_Jan__2_16:55:28_2007-1--