# [PATCH] doc: clarify definition of "update" for git-add -u

3 messages from 2008-05-08 to 2008-05-11. Participants: Jeff King, Junio C Hamano.
Thread: https://gitlist.dev/t/13439

## Jeff King, 2008-05-08 17:25

Subject: [PATCH] doc: clarify definition of "update" for git-add -u
Message-ID: <20080508172506.GA29802@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20080508172506.GA29802%40sigill.intra.peff.net

```
The "-u" option is described only in terms of "updating"
files, which in turn is described only as "similar to what
git commit -a does". Let's be a little more specific about
what updating entails.

Suggested by Geoffrey Irving.

Signed-off-by: Jeff King <peff@peff.net>
---
The wrapping is funny to make the text diff easier to read. Junio, do
you prefer it that way, or in the canonical form?

 Documentation/git-add.txt |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
index 35e67a0..e2389e3 100644
--- a/Documentation/git-add.txt
+++ b/Documentation/git-add.txt
@@ -71,7 +71,9 @@ OPTIONS
 	the specified filepatterns before exiting.
 
 -u::
-	Update only files that git already knows about. This is similar
+	Update only files that git already knows about, staging modified
+	content for commit and marking deleted files for removal. This
+	is similar
 	to what "git commit -a" does in preparation for making a commit,
 	except that the update is limited to paths specified on the
 	command line. If no paths are specified, all tracked files in the
-- 
1.5.5.1.274.g7b68b

```

## Junio C Hamano, 2008-05-11 02:36

Subject: Re: [PATCH] doc: clarify definition of "update" for git-add -u
Message-ID: <7vfxsp8t3z.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vfxsp8t3z.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <20080508172506.GA29802@sigill.intra.peff.net>

```
Jeff King <peff@peff.net> writes:

> The wrapping is funny to make the text diff easier to read. Junio, do
> you prefer it that way, or in the canonical form?

Thanks, will apply.

```

## Jeff King, 2008-05-11 08:07

Subject: Re: [PATCH] doc: clarify definition of "update" for git-add -u
Message-ID: <20080511080724.GB6971@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20080511080724.GB6971%40sigill.intra.peff.net
In-Reply-To: <7vfxsp8t3z.fsf@gitster.siamese.dyndns.org>

```
On Sat, May 10, 2008 at 07:36:16PM -0700, Junio C Hamano wrote:

> > The wrapping is funny to make the text diff easier to read. Junio, do
> > you prefer it that way, or in the canonical form?
> 
> Thanks, will apply.

Thanks. But you still didn't answer my question. ;P

-Peff

```
