From: Miles Bader <miles@gnu.org>
To: Marc Weber <marco-oweber@gmx.de>
Cc: git <git@vger.kernel.org>
Subject: Re: I suggest that git commit support -A option, just like hg does.thanks.
Date: Mon, 08 Aug 2011 13:33:39 +0900 [thread overview]
Message-ID: <buoy5z4ed3w.fsf@dhlpc061.dev.necel.com> (raw)
In-Reply-To: <1312659297-sup-2956@nixos>
Marc Weber <marco-oweber@gmx.de> writes:
>> I don't want to run "git add -A" before commit,Â
>> I want to use "git commit -A -m 'msg' " instead.
>
> if you need it that often add to your .bashrc:
> gcA(){ git add -A && git commit -m "$@"; }
>
> which is even faster.
Remember: "just add an alias!" is an acceptable answer only if the
desired feature is odd/unusual. For desired features that are likely
to be generally useful, git should do the right thing, out of the box,
for everybody.
Which case this particular request falls into, is a matter of
judgement, but such a feature looks "generally useful" to me.
The annoying thing, of course, is that commit and add already have
inconsistent long options for this type of functionality (commit --all
vs add --all). [I'd consider that a bug, regardless of whether commit
gets -A type functionality, but I suppose it's too late to fix...]
-Miles
--
Absurdity, n. A statement or belief manifestly inconsistent with one's own
opinion.
next prev parent reply other threads:[~2011-08-08 4:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-06 14:32 I suggest that git commit support -A option, just like hg does.thanks jelly
2011-08-06 15:02 ` Magnus Bäck
2011-08-06 16:17 ` jelly
2011-08-06 19:35 ` Marc Weber
2011-08-08 4:33 ` Miles Bader [this message]
2011-08-08 4:56 ` Junio C Hamano
2011-08-08 14:04 ` Michael Witten
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=buoy5z4ed3w.fsf@dhlpc061.dev.necel.com \
--to=miles@gnu.org \
--cc=git@vger.kernel.org \
--cc=marco-oweber@gmx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.