From: Pekka Kaitaniemi Date: Thu, 06 Mar 2008 12:19:37 GMT Subject: Re: [RFC] git add -a Message-ID: <20080306121937.GA11882@localdomain> In-Reply-To: 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 > > 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