Skip to content

Commit

Permalink
document "intent to add" option to git-add
Browse files Browse the repository at this point in the history
This was added by 3942581 but never documented.

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 Oct 21, 2008
1 parent 310237b commit 8776f5d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Documentation/git-add.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ SYNOPSIS
--------
[verse]
'git add' [-n] [-v] [--force | -f] [--interactive | -i] [--patch | -p]
[--all | [--update | -u]] [--refresh] [--ignore-errors] [--]
<filepattern>...
[--all | [--update | -u]] [--intent-to-add | -N]
[--refresh] [--ignore-errors] [--] <filepattern>...

DESCRIPTION
-----------
Expand Down Expand Up @@ -92,6 +92,15 @@ OPTIONS
and add all untracked files that are not ignored by '.gitignore'
mechanism.


-N::
--intent-to-add::
Record only the fact that the path will be added later. An entry
for the path is placed in the index with no content. This is
useful for, among other things, showing the unstaged content of
such files with 'git diff' and commiting them with 'git commit
-a'.

--refresh::
Don't add the file(s), but only refresh their stat()
information in the index.
Expand Down

0 comments on commit 8776f5d

Please sign in to comment.