From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.176.0/21 X-Spam-Status: No, score=-3.5 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MSGID_FROM_MTA_HEADER,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 From: Junio C Hamano Subject: Re: [PATCH 0/2] Making "git commit" to mean "git commit -a". Date: Thu, 30 Nov 2006 16:24:03 -0800 Message-ID: <7vk61cea58.fsf@assigned-by-dhcp.cox.net> References: <7virgzuf38.fsf@assigned-by-dhcp.cox.net> <7vr6vmsnly.fsf@assigned-by-dhcp.cox.net> <87ejrlvn7r.wl%cworth@cworth.org> <7vodqpn3t4.fsf@assigned-by-dhcp.cox.net> <7vk61dn2yj.fsf@assigned-by-dhcp.cox.net> <456EBBE7.8030404@op5.se> <20061130164046.GB17715@thunk.org> <87irgwu6e6.wl%cworth@cworth.org> <87hcwgu5t1.wl%cworth@cworth.org> <7vhcwgiqer.fsf@assigned-by-dhcp.cox.net> <7vlklsfsgz.fsf@assigned-by-dhcp.cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Date: Fri, 1 Dec 2006 00:24:23 +0000 (UTC) Cc: Nicolas Pitre , Carl Worth , Theodore Tso , Andreas Ericsson , Johannes Schindelin , git@vger.kernel.org Return-path: Envelope-to: gcvg-git@gmane.org In-Reply-To: (Linus Torvalds's message of "Thu, 30 Nov 2006 15:40:58 -0800 (PST)") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GpwCJ-0005Ex-FK for gcvg-git@gmane.org; Fri, 01 Dec 2006 01:24:12 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031637AbWLAAYI (ORCPT ); Thu, 30 Nov 2006 19:24:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1031644AbWLAAYI (ORCPT ); Thu, 30 Nov 2006 19:24:08 -0500 Received: from fed1rmmtao10.cox.net ([68.230.241.29]:13250 "EHLO fed1rmmtao10.cox.net") by vger.kernel.org with ESMTP id S1031637AbWLAAYF (ORCPT ); Thu, 30 Nov 2006 19:24:05 -0500 Received: from fed1rmimpo02.cox.net ([70.169.32.72]) by fed1rmmtao10.cox.net (InterMail vM.6.01.06.03 201-2131-130-104-20060516) with ESMTP id <20061201002404.QLLG5575.fed1rmmtao10.cox.net@fed1rmimpo02.cox.net>; Thu, 30 Nov 2006 19:24:04 -0500 Received: from assigned-by-dhcp.cox.net ([68.5.247.80]) by fed1rmimpo02.cox.net with bizsmtp id tCQD1V00H1kojtg0000000; Thu, 30 Nov 2006 19:24:14 -0500 To: Linus Torvalds Sender: git-owner@vger.kernel.org Linus Torvalds writes: > On Thu, 30 Nov 2006, Junio C Hamano wrote: >> >> I sense that you are inviting me to argue for reverting the >> other "git commit" braindead which is spelled "--only" (and >> worse yet, it is the default). I am very tempted. > > I actually really like the current defaults for "git commit". Hmmm. I did not make my judgement based on what the command did in the ancient _original_ version. The --only behaviour being totally different from others (from "index is the only thing that matters" point of view) was what bothered me. It did not feel logical. However, if you put it this way: > I like the fact that when you do "git commit filename", it really will > commit _only_ that file, not the other files you added. It's logical. that makes tons of sense. What's "logical" largely depends on how things ought to behave in the mental model, and the mental model you would form largely depends on how things are explained to you.