* [RFC] git add -a @ 2008-03-06 10:23 Marc-André Lureau 2008-03-06 10:46 ` Michele Ballabio 0 siblings, 1 reply; 5+ messages in thread From: Marc-André Lureau @ 2008-03-06 10:23 UTC (permalink / raw) To: git Hello, What about "git add -a" ? I am in a situation where I'd like it :) Of course, I could do a commit -a and amend later, but that does not have the same meaning for me. Tell me what you think. Thanks -- Marc-André Lureau ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] git add -a 2008-03-06 10:23 [RFC] git add -a Marc-André Lureau @ 2008-03-06 10:46 ` Michele Ballabio 2008-03-06 10:57 ` Marc-André Lureau 0 siblings, 1 reply; 5+ messages in thread From: Michele Ballabio @ 2008-03-06 10:46 UTC (permalink / raw) To: git; +Cc: Marc-André Lureau On Thursday 06 March 2008, Marc-André Lureau wrote: > What about "git add -a" ? I am in a situation where I'd like it There's "git add -u". It should do what you want. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] git add -a 2008-03-06 10:46 ` Michele Ballabio @ 2008-03-06 10:57 ` Marc-André Lureau 2008-03-06 11:35 ` Johannes Schindelin 0 siblings, 1 reply; 5+ messages in thread From: Marc-André Lureau @ 2008-03-06 10:57 UTC (permalink / raw) To: Michele Ballabio; +Cc: git Hi, On Thu, Mar 6, 2008 at 12:46 PM, Michele Ballabio <barra_cuda@katamail.com> wrote: > > There's "git add -u". It should do what you want. > Thanks for this answer :) I wonder why "-u" and not "-a".. After all git commit "-a" could be "-s" if we follow that distinction (Update/Stage/All). Regards, -- Marc-André Lureau ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] git add -a 2008-03-06 10:57 ` Marc-André Lureau @ 2008-03-06 11:35 ` Johannes Schindelin 2008-03-06 12:19 ` Pekka Kaitaniemi 0 siblings, 1 reply; 5+ messages in thread From: Johannes Schindelin @ 2008-03-06 11:35 UTC (permalink / raw) To: Marc-André Lureau; +Cc: Michele Ballabio, git [-- Attachment #1: Type: TEXT/PLAIN, Size: 580 bytes --] Hi, On Thu, 6 Mar 2008, Marc-André Lureau wrote: > Hi, > > On Thu, Mar 6, 2008 at 12:46 PM, Michele Ballabio > <barra_cuda@katamail.com> wrote: > > > > There's "git add -u". It should do what you want. > > > > Thanks for this answer :) I wonder why "-u" and not "-a".. After all > git commit "-a" could be "-s" if we follow that distinction > (Update/Stage/All). Probably because some people would expect "git add -a" to do the same as "git add .", i.e. add _all_ files (even the untracked ones), as opposed to "git add -u", which updates all _tracked_ files. Hth, Dscho ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] git add -a 2008-03-06 11:35 ` Johannes Schindelin @ 2008-03-06 12:19 ` Pekka Kaitaniemi 0 siblings, 0 replies; 5+ messages in thread From: Pekka Kaitaniemi @ 2008-03-06 12:19 UTC (permalink / raw) To: Johannes Schindelin; +Cc: Marc-André Lureau, Michele Ballabio, git Hi, On Thu, Mar 06, 2008 at 12:35:58PM +0100, Johannes Schindelin wrote: > Hi, > > On Thu, 6 Mar 2008, Marc-André Lureau wrote: > > > Hi, > > > > On Thu, Mar 6, 2008 at 12:46 PM, Michele Ballabio > > <barra_cuda@katamail.com> wrote: > > > > > > There's "git add -u". It should do what you want. > > > > > > > Thanks for this answer :) I wonder why "-u" and not "-a".. After all > > git commit "-a" could be "-s" if we follow that distinction > > (Update/Stage/All). > > Probably because some people would expect "git add -a" to do the same as > "git add .", i.e. add _all_ files (even the untracked ones), as opposed to > "git add -u", which updates all _tracked_ files. Actually "git add -u" updates all tracked files in the _current_ directory and its subdirectories. So the current working directory acts as a "path limiter". Pekka ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-03-06 12:20 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-03-06 10:23 [RFC] git add -a Marc-André Lureau 2008-03-06 10:46 ` Michele Ballabio 2008-03-06 10:57 ` Marc-André Lureau 2008-03-06 11:35 ` Johannes Schindelin 2008-03-06 12:19 ` Pekka Kaitaniemi
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).