Skip to content

Commit

Permalink
doc: clarify definition of "update" for git-add -u
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jeff King authored and Junio C Hamano committed May 8, 2008
1 parent a174889 commit afd899e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Documentation/git-add.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit afd899e

Please sign in to comment.