Re: [PATCH 2/2] git-add -a: add all files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Sat, 19 Jul 2008, Tarmigan wrote:

> It's too bad that 'commit -a' and 'add -a' will have different
> meanings.

Two things:

- add and commit are two _different_ operations, not only in name, but 
  also in nature.  The fact that "commit -a" calls "add" is a _pure_ 
  convenience.  It does not change the fact that "add" and "commit" are 
  completely, utterly different.

- if you are a heavy user of "commit -a", chances are that your history is 
  not really useful, because you committed unrelated changes accidentally 
  in the same commit.

The latter point, BTW, is the reason I _never_ teach the "-a" option 
(actually, I teach no option at all) in my first two Git lessons.

Ciao,
Dscho

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux