git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pekka Kaitaniemi <kaitanie@cc.helsinki.fi>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: "Marc-André Lureau" <marcandre.lureau@gmail.com>,
	"Michele Ballabio" <barra_cuda@katamail.com>,
	git@vger.kernel.org
Subject: Re: [RFC] git add -a
Date: Thu, 6 Mar 2008 14:19:37 +0200	[thread overview]
Message-ID: <20080306121937.GA11882@localdomain> (raw)
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

      reply	other threads:[~2008-03-06 12:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080306121937.GA11882@localdomain \
    --to=kaitanie@cc.helsinki.fi \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=barra_cuda@katamail.com \
    --cc=git@vger.kernel.org \
    --cc=marcandre.lureau@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).