From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthieu Moy Subject: Re: why is git destructive by default? (i suggest it not be!) Date: Wed, 25 Jun 2008 14:20:52 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Brandon Casey , git@vger.kernel.org To: "David Jeske" X-From: git-owner@vger.kernel.org Wed Jun 25 15:10:54 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1KBUlh-0007vc-Tv for gcvg-git-2@gmane.org; Wed, 25 Jun 2008 15:10:38 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755331AbYFYNJm (ORCPT ); Wed, 25 Jun 2008 09:09:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754697AbYFYNJm (ORCPT ); Wed, 25 Jun 2008 09:09:42 -0400 Received: from harmonie.imag.fr ([147.171.130.40]:61640 "EHLO harmonie.imag.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753916AbYFYNJl (ORCPT ); Wed, 25 Jun 2008 09:09:41 -0400 Received: from mail-veri.imag.fr (mail-veri.imag.fr [129.88.43.52]) by harmonie.imag.fr (8.13.8/8.13.8) with ESMTP id m5PD8ALq010054; Wed, 25 Jun 2008 15:08:18 +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 1KBTzY-0004fI-Nj; Wed, 25 Jun 2008 14:20:52 +0200 Received: from moy by bauges.imag.fr with local (Exim 4.63) (envelope-from ) id 1KBTzY-0004as-LF; Wed, 25 Jun 2008 14:20:52 +0200 In-Reply-To: (David Jeske's message of "Tue\, 24 Jun 2008 16\:41\:59 -0000") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (harmonie.imag.fr [147.171.130.40]); Wed, 25 Jun 2008 15:08:18 +0200 (CEST) X-IMAG-MailScanner-Information: Please contact MI2S MIM 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 List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: "David Jeske" writes: > - standardize all the potentially destructive operations (after gc) on "-f / > --force" to override Depending on the definition of "potentially destructive", most commands are "potentially destructive". git pull loses the point where the branch used to point when the reflog expires. git add loses the old content of the index. ... And adding too many --force options removes its real value. Many people type "rm -fr" any time they just want "rm", just because they were annoyed by the multiple interactive confirmations of plain "rm" (if aliased to "rm -i"). Asking people to type --force all the time make one fingers type --force mechanically, and removes all its value. -- Matthieu