From: Michael J Gruber <git@drmicha.warpmail.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: Jeff King <peff@peff.net>, Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH/RFC 0/3] add/commit -u/-a/-A
Date: Sat, 26 Feb 2011 11:30:08 +0100 [thread overview]
Message-ID: <4D68D630.9000608@drmicha.warpmail.net> (raw)
In-Reply-To: <7vr5aw9b7m.fsf@alter.siamese.dyndns.org>
Junio C Hamano venit, vidit, dixit 25.02.2011 20:16:
> Michael J Gruber <git@drmicha.warpmail.net> writes:
>
>> It comes before Jeff's series from p^3u which refactors add/commit and
>> implements "commit -A".
>
> What's that topic, and what's p^3u?
p^3u = ppp = proposed potential pu (or something)
Sorry for the TeX notation.
In "Re: Why doesn't git commit -a track new files" (which I failed to
reference from this series), Jeff and I have been discussing how to make
the add-related options of add and commit homogeneous and less
surprising (see the OP). Nobody objected there, so I assumed everyone to
agree... The two problems addressed here are:
- "add -u" and "commit -a" are "the same" (as far as additions go, and
when used without pathspec) but are named differently
- "add --all" and "commit --all" are named the same but do different
things (-A resp. -a).
I care about consistency, not so much about actual names.
I don't think we use upper case long options, or I would have suggested
"--All" as long form of "-A".
You see, "commit --all" seems to promise more than it does - one really
has to know what "all" is qualified by.
And, similarly, "add" always updates the index, it always is about the
updates in the files which are selected, so "-u/--update" doesn't make
much sense to distinguish it from other uses of "add". That's the
reasoning that lead us to having "-a = -u" for add, and that lead me to
renaming "-a = --all" to "-a = --tracked". I wouldn't mind
"--all-tracked" here. and I would have left it and renamed "-A = --all"
to "-A = --foo" if I had had a good "--foo".
Michael
next prev parent reply other threads:[~2011-02-26 10:29 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-25 14:45 [PATCH/RFC 0/3] add/commit -u/-a/-A Michael J Gruber
2011-02-25 14:45 ` [PATCH/RFC 1/3] git-add: make -A description clearer vs. -u Michael J Gruber
2011-02-25 19:04 ` Junio C Hamano
2011-02-25 14:45 ` [PATCH/RFC 2/3] git-commit: rename --all to --track Michael J Gruber
2011-02-25 19:08 ` Junio C Hamano
2011-02-25 14:45 ` [PATCH/RFC 3/3] git-add: rename -u to -a Michael J Gruber
2011-02-25 19:40 ` Junio C Hamano
[not found] ` <7vr5aw9b7m.fsf@alter.siamese.dyndns.org>
2011-02-26 10:30 ` Michael J Gruber [this message]
2011-02-27 15:50 ` [PATCHv2 0/3] add/commit -u/-a/-A Michael J Gruber
2011-02-27 15:50 ` [PATCHv2 1/3] git-add: make -A description clearer vs. -u Michael J Gruber
2011-02-27 23:35 ` Junio C Hamano
2011-02-27 15:50 ` [PATCHv2 2/3] git-commit: rename --all to --all-tracked Michael J Gruber
2011-02-27 15:50 ` [PATCHv2 3/3] git-add: rename -u to -a Michael J Gruber
2011-02-27 16:38 ` Nguyen Thai Ngoc Duy
2011-02-28 6:40 ` Junio C Hamano
2011-02-28 8:30 ` Michael J Gruber
2011-02-28 8:42 ` Miles Bader
2011-02-28 8:46 ` Michael J Gruber
2011-02-28 8:53 ` Miles Bader
2011-02-28 9:05 ` Snipping on this list (Was: Re: [PATCHv2 3/3] git-add: rename -u to -a) Michael J Gruber
2011-02-28 18:18 ` Snipping on this list Junio C Hamano
2011-02-28 9:03 ` [PATCHv2 3/3] git-add: rename -u to -a Miles Bader
2011-02-28 9:08 ` Michael J Gruber
2011-02-28 9:40 ` Matthieu Moy
2011-02-28 9:49 ` Michael J Gruber
2011-02-28 10:01 ` Tor Arntsen
2011-02-28 10:03 ` Michael J Gruber
2011-02-28 10:05 ` Matthieu Moy
2011-02-28 10:53 ` Michael J Gruber
2011-02-28 18:21 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D68D630.9000608@drmicha.warpmail.net \
--to=git@drmicha.warpmail.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).