From: Miles Bader Date: Mon, 08 Aug 2011 04:33:39 GMT Subject: Re: I suggest that git commit support -A option, just like hg does.thanks. Message-ID: In-Reply-To: <1312659297-sup-2956@nixos> Marc Weber 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.