{"thread":{"id":"28033","subject":"I suggest that git commit support -A option, just like hg does.thanks.","startedAt":"2011-08-06T14:32:53Z","lastAt":"2011-08-08T14:04:46Z","messageCount":7,"participants":["jelly","Magnus Bäck","Marc Weber","Miles Bader","Junio C Hamano","Michael Witten"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"173061","messageId":"35a2b515.12f42.1319f82c79d.Coremail.sinojelly@163.com","threadId":"28033","inReplyTo":null,"subject":"I suggest that git commit support -A option, just like hg does.thanks.","fromName":"jelly","fromEmail":"sinojelly@163.com","sentAt":"2011-08-06T14:32:53Z","receivedAt":"2011-08-06T14:32:53Z","isPatch":false,"sender":{"key":"sinojelly@163.com","avatar":"https://gravatar.com/avatar/b0b62bbb9960cfe61ba2b4ccf035442f1117f9c56a31dfb60c543ba7f59956a1?d=mp&s=160"},"body":"$ hg help commit\nhg commit [OPTION]... [FILE]...\n          -A --addremove            mark new/missing files as added/removed before committing\n"},{"id":"173062","messageId":"20110806150246.GA20650@jpl.local","threadId":"28033","inReplyTo":"35a2b515.12f42.1319f82c79d.Coremail.sinojelly@163.com","subject":"Re: I suggest that git commit support -A option, just like hg does.thanks.","fromName":"Magnus Bäck","fromEmail":"magnus.back@sonyericsson.com","sentAt":"2011-08-06T15:02:47Z","receivedAt":"2011-08-06T15:02:47Z","isPatch":false,"sender":{"key":"magnus.back@sonyericsson.com","avatar":null},"body":"On Saturday, August 06, 2011 at 16:32 CEST,\n     jelly <sinojelly@163.com> wrote:\n\n> $ hg help commit\n> hg commit [OPTION]... [FILE]...\n>           -A --addremove            mark new/missing files as added/removed before committing\n\nIt seems like you're looking for the -A option to \"git add\".\n\n-- \nMagnus Bäck                   Opinions are my own and do not necessarily\nSW Configuration Manager      represent the ones of my employer, etc.\nSony Ericsson\n"},{"id":"173064","messageId":"4d88745.134ea.1319fe29f01.Coremail.sinojelly@163.com","threadId":"28033","inReplyTo":"20110806150246.GA20650@jpl.local","subject":"Re:Re: I suggest that git commit support -A option, just like hg does.thanks.","fromName":"jelly","fromEmail":"sinojelly@163.com","sentAt":"2011-08-06T16:17:34Z","receivedAt":"2011-08-06T16:17:34Z","isPatch":false,"sender":{"key":"sinojelly@163.com","avatar":"https://gravatar.com/avatar/b0b62bbb9960cfe61ba2b4ccf035442f1117f9c56a31dfb60c543ba7f59956a1?d=mp&s=160"},"body":">It seems like you're looking for the -A option to \"git add\".\n\nI don't want to run \"git add -A\" before commit, \nI want to use \"git commit -A -m 'msg' \" instead.\n"},{"id":"173068","messageId":"1312659297-sup-2956@nixos","threadId":"28033","inReplyTo":"4d88745.134ea.1319fe29f01.Coremail.sinojelly@163.com","subject":"Re:Re: I suggest that git commit support -A option, just like hg does.thanks.","fromName":"Marc Weber","fromEmail":"marco-oweber@gmx.de","sentAt":"2011-08-06T19:35:35Z","receivedAt":"2011-08-06T19:35:35Z","isPatch":false,"sender":{"key":"marco-oweber@gmx.de","avatar":null},"body":"Excerpts from jelly's message of Sat Aug 06 18:17:34 +0200 2011:\n> >ItÂ seemsÂ likeÂ you'reÂ lookingÂ forÂ theÂ -AÂ optionÂ toÂ \"gitÂ add\".\n> \n> I don't want to run \"git add -A\" before commit,Â \n> I want to use \"git commit -A -m 'msg' \" instead.\n\nif you need it that often add to your .bashrc:\ngcA(){ git add -A && git commit -m \"$@\"; }\n\nwhich is even faster.\n\nMarc Weber\n"},{"id":"173114","messageId":"buoy5z4ed3w.fsf@dhlpc061.dev.necel.com","threadId":"28033","inReplyTo":"1312659297-sup-2956@nixos","subject":"Re: I suggest that git commit support -A option, just like hg does.thanks.","fromName":"Miles Bader","fromEmail":"miles@gnu.org","sentAt":"2011-08-08T04:33:39Z","receivedAt":"2011-08-08T04:33:39Z","isPatch":false,"sender":{"key":"miles@gnu.org","avatar":"https://gravatar.com/avatar/01069b69593af7bff28e2f97afeb3644ae6fe2f5f56cb3a8cf34c5fb8c36efe5?d=mp&s=160"},"body":"Marc Weber <marco-oweber@gmx.de> writes:\n>> I don't want to run \"git add -A\" before commit,Â \n>> I want to use \"git commit -A -m 'msg' \" instead.\n>\n> if you need it that often add to your .bashrc:\n> gcA(){ git add -A && git commit -m \"$@\"; }\n>\n> which is even faster.\n\nRemember:  \"just add an alias!\" is an acceptable answer only if the\ndesired feature is odd/unusual.  For desired features that are likely\nto be generally useful, git should do the right thing, out of the box,\nfor everybody.\n\nWhich case this particular request falls into, is a matter of\njudgement, but such a feature looks \"generally useful\" to me.\n\nThe annoying thing, of course, is that commit and add already have\ninconsistent long options for this type of functionality (commit --all\nvs add --all). [I'd consider that a bug, regardless of whether commit\ngets -A type functionality, but I suppose it's too late to fix...]\n\n-Miles\n\n-- \nAbsurdity, n. A statement or belief manifestly inconsistent with one's own\nopinion.\n"},{"id":"173116","messageId":"7vfwlc1ox1.fsf@alter.siamese.dyndns.org","threadId":"28033","inReplyTo":"buoy5z4ed3w.fsf@dhlpc061.dev.necel.com","subject":"Re: I suggest that git commit support -A option, just like hg does.thanks.","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2011-08-08T04:56:58Z","receivedAt":"2011-08-08T04:56:58Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Miles Bader <miles@gnu.org> writes:\n\n> Remember:  \"just add an alias!\" is an acceptable answer only if the\n> desired feature is odd/unusual.  For desired features that are likely\n> to be generally useful, git should do the right thing, out of the box,\n> for everybody.\n\nThe reason I deliberately chose to use capital letter in \"add -A\" even\nwhen we do not have \"add -a\" was exactly so that interested parties can do\n\"commit -A\" to match it (and \"commit -a\" is doing the _right_ thing out of\nthe box, and its behaviour will not change). Hopefully you can take it as\na strong hint that I personally do not think \"commit -A\" is without merit.\n\nSo far, nobody stepped up to do it, though. I have been taking it as a\nsign that \"commit -A\" is not one of the commonly desired features but is\nprobably closer to your \"odd/unusual\". It's up to the user/developer\ncommunity to change that ;-)\n"},{"id":"173133","messageId":"CAMOZ1BtVy5m0i2co-YEjxGxzMVHpq01vSn0P7UkURHu=AQ=gsA@mail.gmail.com","threadId":"28033","inReplyTo":"7vfwlc1ox1.fsf@alter.siamese.dyndns.org","subject":"Re: I suggest that git commit support -A option, just like hg does.thanks.","fromName":"Michael Witten","fromEmail":"mfwitten@gmail.com","sentAt":"2011-08-08T14:04:46Z","receivedAt":"2011-08-08T14:04:46Z","isPatch":false,"sender":{"key":"mfwitten@gmail.com","avatar":"https://avatars.githubusercontent.com/u/597101?v=4"},"body":"On Mon, Aug 8, 2011 at 04:56, Junio C Hamano <gitster@pobox.com> wrote:\n> So far, nobody stepped up to do it, though. I have been taking it as a\n> sign that \"commit -A\" is not one of the commonly desired features but is\n> probably closer to your \"odd/unusual\". It's up to the user/developer\n> community to change that ;-)\n\nWith regard to anything that can be changed for the better, the vast\nmajority of people shrug their shoulders, groan, and use what's\nalready available to them.\n"}]}