On Wed, 29 Nov 2006 12:45:18 -0800 (PST), Linus Torvalds wrote:
Yes, this is goog.
To start with, that message confuses a lot of new users. "What do you
mean there's nothing to commit? I just made changes. And I know you
noticed them because you just mentioned the names of the files with
the changes to me!".
So at the very least, there's some missing guidance as to how to get
from the "nothing to commit" stage to actually commit the files the
user was trying to commit when they typed "git commit" in the first
place.
Yes, I submitted a patch for this. I don't think Junio picked it up
because it got him thinking about all the other situations where "git
status" doesn't give as much guidance as it should
Even with that, the user has to go through the process of:
git commit
"hmm... why didn't that work"
read message
git commit -a
That's not a _huge_ problem, but it is a little road-bump that a lot of
people meet on their first attempt at git. In the thread on the fedora
mailing list that prompted my first "user-interface warts" and the
patch I mentioned above, the process was worse:
git commit
"hmm... why didn't that work"
read message
git update-index
git commit
"crap... it still didn't work even when I did what it told me to do"
Here's the original version of that report:
https://www.redhat.com/archives/fedora-maintainers/2006-November/msg00141.html
In none of these recent threads have I been arguing disadvantages of
the index. I'm really just trying to remove one small hurdle that
does trip up new users, (see above). I'm not trying to introduce any
large conceptual change into how git works, nor even what experienced
users do.
Let's help people do exactly that by making the behavior of "git
commit -a" be the default for "git commit".
-Carl