git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* I suggest that git commit support -A option, just like hg does.thanks.
@ 2011-08-06 14:32 jelly
  2011-08-06 15:02 ` Magnus Bäck
  2011-08-06 16:17 ` jelly
  0 siblings, 2 replies; 7+ messages in thread
From: jelly @ 2011-08-06 14:32 UTC (permalink / raw)
  To: git

$ hg help commit
hg commit [OPTION]... [FILE]...
          -A --addremove            mark new/missing files as added/removed before committing

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: I suggest that git commit support -A option, just like hg does.thanks.
  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
  1 sibling, 0 replies; 7+ messages in thread
From: Magnus Bäck @ 2011-08-06 15:02 UTC (permalink / raw)
  To: jelly; +Cc: git

On Saturday, August 06, 2011 at 16:32 CEST,
     jelly <sinojelly@163.com> wrote:

> $ hg help commit
> hg commit [OPTION]... [FILE]...
>           -A --addremove            mark new/missing files as added/removed before committing

It seems like you're looking for the -A option to "git add".

-- 
Magnus Bäck                   Opinions are my own and do not necessarily
SW Configuration Manager      represent the ones of my employer, etc.
Sony Ericsson

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re:Re: I suggest that git commit support -A option, just like hg does.thanks.
  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
  1 sibling, 1 reply; 7+ messages in thread
From: jelly @ 2011-08-06 16:17 UTC (permalink / raw)
  To: Magnus Bäck; +Cc: git

>It seems like you're looking for the -A option to "git add".

I don't want to run "git add -A" before commit, 
I want to use "git commit -A -m 'msg' " instead.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re:Re: I suggest that git commit support -A option, just like hg does.thanks.
  2011-08-06 16:17 ` jelly
@ 2011-08-06 19:35   ` Marc Weber
  2011-08-08  4:33     ` Miles Bader
  0 siblings, 1 reply; 7+ messages in thread
From: Marc Weber @ 2011-08-06 19:35 UTC (permalink / raw)
  To: git

Excerpts from jelly's message of Sat Aug 06 18:17:34 +0200 2011:
> >It seems like you're looking for the -A option to "git add".
> 
> 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.

Marc Weber

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: I suggest that git commit support -A option, just like hg does.thanks.
  2011-08-06 19:35   ` Marc Weber
@ 2011-08-08  4:33     ` Miles Bader
  2011-08-08  4:56       ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Miles Bader @ 2011-08-08  4:33 UTC (permalink / raw)
  To: Marc Weber; +Cc: git

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: I suggest that git commit support -A option, just like hg does.thanks.
  2011-08-08  4:33     ` Miles Bader
@ 2011-08-08  4:56       ` Junio C Hamano
  2011-08-08 14:04         ` Michael Witten
  0 siblings, 1 reply; 7+ messages in thread
From: Junio C Hamano @ 2011-08-08  4:56 UTC (permalink / raw)
  To: Miles Bader; +Cc: Marc Weber, git

Miles Bader <miles@gnu.org> writes:

> 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.

The reason I deliberately chose to use capital letter in "add -A" even
when we do not have "add -a" was exactly so that interested parties can do
"commit -A" to match it (and "commit -a" is doing the _right_ thing out of
the box, and its behaviour will not change). Hopefully you can take it as
a strong hint that I personally do not think "commit -A" is without merit.

So far, nobody stepped up to do it, though. I have been taking it as a
sign that "commit -A" is not one of the commonly desired features but is
probably closer to your "odd/unusual". It's up to the user/developer
community to change that ;-)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: I suggest that git commit support -A option, just like hg does.thanks.
  2011-08-08  4:56       ` Junio C Hamano
@ 2011-08-08 14:04         ` Michael Witten
  0 siblings, 0 replies; 7+ messages in thread
From: Michael Witten @ 2011-08-08 14:04 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Miles Bader, Marc Weber, git

On Mon, Aug 8, 2011 at 04:56, Junio C Hamano <gitster@pobox.com> wrote:
> So far, nobody stepped up to do it, though. I have been taking it as a
> sign that "commit -A" is not one of the commonly desired features but is
> probably closer to your "odd/unusual". It's up to the user/developer
> community to change that ;-)

With regard to anything that can be changed for the better, the vast
majority of people shrug their shoulders, groan, and use what's
already available to them.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-08-08 14:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2011-08-08  4:56       ` Junio C Hamano
2011-08-08 14:04         ` Michael Witten

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).