# [RFC] git add -a

5 messages from 2008-03-06 to 2008-03-06. Participants: Marc-André Lureau, Michele Ballabio, Johannes Schindelin, Pekka Kaitaniemi.
Thread: https://gitlist.dev/t/12536

## Marc-André Lureau, 2008-03-06 10:23

Subject: [RFC] git add -a
Message-ID: <e29894ca0803060223p6de78b1br1aab956c2c99fc1f@mail.gmail.com>
URL: https://gitlist.dev/e/e29894ca0803060223p6de78b1br1aab956c2c99fc1f%40mail.gmail.com

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

```

## Michele Ballabio, 2008-03-06 10:46

Subject: Re: [RFC] git add -a
Message-ID: <200803061146.00500.barra_cuda@katamail.com>
URL: https://gitlist.dev/e/200803061146.00500.barra_cuda%40katamail.com
In-Reply-To: <e29894ca0803060223p6de78b1br1aab956c2c99fc1f@mail.gmail.com>

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

```

## Marc-André Lureau, 2008-03-06 10:57

Subject: Re: [RFC] git add -a
Message-ID: <e29894ca0803060257u19c98074t789f87e1f8c120e7@mail.gmail.com>
URL: https://gitlist.dev/e/e29894ca0803060257u19c98074t789f87e1f8c120e7%40mail.gmail.com
In-Reply-To: <200803061146.00500.barra_cuda@katamail.com>

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

```

## Johannes Schindelin, 2008-03-06 11:35

Subject: Re: [RFC] git add -a
Message-ID: <alpine.LSU.1.00.0803061235060.15786@racer.site>
URL: https://gitlist.dev/e/alpine.LSU.1.00.0803061235060.15786%40racer.site
In-Reply-To: <e29894ca0803060257u19c98074t789f87e1f8c120e7@mail.gmail.com>

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

```

## Pekka Kaitaniemi, 2008-03-06 12:19

Subject: Re: [RFC] git add -a
Message-ID: <20080306121937.GA11882@localdomain>
URL: https://gitlist.dev/e/20080306121937.GA11882%40localdomain
In-Reply-To: <alpine.LSU.1.00.0803061235060.15786@racer.site>

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

```
