summaryrefslogtreecommitdiffstats
path: root/git-add.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2008-10-21 19:04:45 +0000
committerJunio C Hamano <junio@hera.kernel.org>2008-10-21 19:04:45 +0000
commit845880c52d00be9c25b5716f281c5703fcc100c7 (patch)
tree3a6833f68b5fc4b7ea270718821766ce4c0722ef /git-add.txt
parent7d06a8aba96d4197610b089a0862b46d84a36f53 (diff)
downloadgit-htmldocs-845880c52d00be9c25b5716f281c5703fcc100c7.tar.gz
Autogenerated HTML docs for v1.6.0.2-605-g208f6
Diffstat (limited to 'git-add.txt')
-rw-r--r--git-add.txt13
1 files changed, 11 insertions, 2 deletions
diff --git a/git-add.txt b/git-add.txt
index 2b6d6c865..6fc20b0ba 100644
--- a/git-add.txt
+++ b/git-add.txt
@@ -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
-----------
@@ -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.