Re: [PATCH v2] add: warn when -u or -A is used without filepattern
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Jan 28, 2013, 08:48 UTC
- Message-ID
- <vpqobg966cv.fsf@grenoble-inp.fr>
- In-Reply-To
- <7vehh6v01v.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 9 quoted lines
> Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes: > >> Plus, option_with_implicit_dot is used in cut-and-paste ready commands >> below. > > I do not think we should aim for easy cut-and-paste, especially when > the real purpose of the change is to train people's fingers; the > message should discouraging cut-and-paste in a case like this, if > anything.
cut-and-paste readyness is also a way to avoid being ambiguous. If you tell users to run "git add -u (--update)", you'll always find someone to type the command as-is and complain about it not working (sadly, the teacher living inside me is speaking of experience ;-) ).
> But we could obviously do this, if you really want to cut-and-paste.
I was going to do something like this, you've been too quick ;-).
Resend comming soon.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/