Re: [PATCHv2 3/3] git-add: rename -u to -a
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Feb 28, 2011, 10:05 UTC
- Message-ID
- <vpqr5aslbje.fsf@bauges.imag.fr>
- In-Reply-To
- <4D6B6F97.8030409@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 9 quoted lines
> Matthieu Moy venit, vidit, dixit 28.02.2011 10:40: > >> # let's see what happens ... >> $ git add >> $ >> # ok, nothing happened ... >> # continue hacking without noticing that a bunch of files have been added. > > No no, I said "add" would default to what "-u" does now (see below).
Right, that less disturbing than I wrote (but still potentially disturbing)
Show 7 quoted lines
>> Mercurial has taken the other way, making "hg add" add everything by >> default, and some users do complain: >> >> http://osdir.com/ml/version-control.mercurial.general/2007-08/msg00316.html > > Since when do we care about them (as in "hg", not in "users", mind > you...).
If you don't care about experiences of others, I can do nothing for you. I don't have a crystal ball, so I can't say what Git users will say about a given feature, but I can look around me (I'm sure you can too) and see how it went for other people.
Show 23 quoted lines
>> If you change this for Git, you'll have people complaining about >> backward compatibility plus people complaining about least surprise :-( >> >>> - "add" should be about tracked paths by default (default pathspec "."), > > See, here! > >>> >>> - "commit -a,--add <addopts>" be "add <addopts> && commit", and >>> >>> - "-A,--all pathspec" (default pathspec ".") be about tracked and >>> untracked paths (whether add or commit). >> >> Today, "git add ." adds new content in tracked files, and new files, but >> doesn't notice files deletions. Did I miss something, or is there no way >> to do that with your proposal? > > What in > >> That would need a proper migration >> plan etc., and some thinking about -i/-o. Just brain-storming. > > reads "proposal" to you?
What's wrong with you today? Miles asks a honnest question and gets a dissertation about the netiquette, I ask another question, mention the experience of other people and get this.
I did read "brainstorming" in your email, tried to brainstorm with you, but you're not making it easy to us. I'm stopping here, sorry for disturbing.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/