Re: [PATCH 0/2] Making "git commit" to mean "git commit -a".

From: Junio C Hamano <junkio@cox.net>
Date: 2006-12-01 11:24:03
Linus Torvalds <torvalds@osdl.org> 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.



-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Dec 01 11:24:16 2006

This archive was generated by hypermail 2.1.8 : 2006-12-01 11:26:57 EST