summaryrefslogtreecommitdiff
path: root/Documentation/git-add.txt
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2008-10-20 20:36:25 -0400
committerJunio C Hamano <gitster@pobox.com>2008-10-20 19:34:56 -0700
commit8776f5d3bb4237d5a7e43dc2aeaf25b5a4ba819d (patch)
tree456bf8632fa269f87ef2b1c5398aa95dfdbb6432 /Documentation/git-add.txt
parent310237b9698219f58cb9dedd7cd9a3a968e1a196 (diff)
downloadgit-8776f5d3bb4237d5a7e43dc2aeaf25b5a4ba819d.tar.gz
document "intent to add" option to git-add
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>
Diffstat (limited to 'Documentation/git-add.txt')
-rw-r--r--Documentation/git-add.txt13
1 files changed, 11 insertions, 2 deletions
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
index 2b6d6c8654..6fc20b0baf 100644
--- a/Documentation/git-add.txt
+++ b/Documentation/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.