From: Jeff King Date: Tue, 21 Oct 2008 00:36:25 +0000 (-0400) Subject: document "intent to add" option to git-add X-Git-Tag: v1.6.1-rc1~124 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8776f5d3bb4237d5a7e43dc2aeaf25b5a4ba819d;p=git.git document "intent to add" option to git-add This was added by 3942581 but never documented. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt index 2b6d6c865..6fc20b0ba 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] [--] - ... + [--all | [--update | -u]] [--intent-to-add | -N] + [--refresh] [--ignore-errors] [--] ... 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.