Skip to content

Commit afd899e

Browse files
peffgitster
authored andcommitted
doc: clarify definition of "update" for git-add -u
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a174889 commit afd899e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Documentation/git-add.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ OPTIONS
7171
the specified filepatterns before exiting.
7272

7373
-u::
74-
Update only files that git already knows about. This is similar
74+
Update only files that git already knows about, staging modified
75+
content for commit and marking deleted files for removal. This
76+
is similar
7577
to what "git commit -a" does in preparation for making a commit,
7678
except that the update is limited to paths specified on the
7779
command line. If no paths are specified, all tracked files in the

0 commit comments

Comments
 (0)