@matheusbsbs / matheus-bagliano / commits / 8776f5d3bb
Fork 0

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>

Jeff King committed Oct 20, 2008 at 20:36 UTC 8776f5d3bb4237d5a7e43dc2aeaf25b5a4ba819d
1 file changed +11 -2
Documentation/git-add.txt
+11 -2
@@ -9,8 +9,8 @@ SYNOPSIS
9 --------
10 [verse]
11 'git add' [-n] [-v] [--force | -f] [--interactive | -i] [--patch | -p]
12 - [--all | [--update | -u]] [--refresh] [--ignore-errors] [--]
13 - <filepattern>...
12 + [--all | [--update | -u]] [--intent-to-add | -N]
13 + [--refresh] [--ignore-errors] [--] <filepattern>...
14
15 DESCRIPTION
16 -----------
@@ -92,6 +92,15 @@ OPTIONS
92 and add all untracked files that are not ignored by '.gitignore'
93 mechanism.
94
95 +
96 +-N::
97 +--intent-to-add::
98 + Record only the fact that the path will be added later. An entry
99 + for the path is placed in the index with no content. This is
100 + useful for, among other things, showing the unstaged content of
101 + such files with 'git diff' and commiting them with 'git commit
102 + -a'.
103 +
104 --refresh::
105 Don't add the file(s), but only refresh their stat()
106 information in the index.