{"thread":{"id":"15989","subject":"[PATCH 1/2] document \"intent to add\" option to git-add","startedAt":"2008-10-21T00:36:25Z","lastAt":"2008-10-21T00:36:25Z","messageCount":1,"participants":["Jeff King"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"93567","messageId":"20081021003625.GA32569@coredump.intra.peff.net","threadId":"15989","inReplyTo":null,"subject":"[PATCH 1/2] document \"intent to add\" option to git-add","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2008-10-21T00:36:25Z","receivedAt":"2008-10-21T00:36:25Z","isPatch":true,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"This was added by 3942581 but never documented.\n\nSigned-off-by: Jeff King <peff@peff.net>\n---\n Documentation/git-add.txt |   13 +++++++++++--\n 1 files changed, 11 insertions(+), 2 deletions(-)\n\ndiff --git a/Documentation/git-add.txt b/Documentation/git-add.txt\nindex 2b6d6c8..6fc20b0 100644\n--- a/Documentation/git-add.txt\n+++ b/Documentation/git-add.txt\n@@ -9,8 +9,8 @@ SYNOPSIS\n --------\n [verse]\n 'git add' [-n] [-v] [--force | -f] [--interactive | -i] [--patch | -p]\n-\t  [--all | [--update | -u]] [--refresh] [--ignore-errors] [--]\n-\t  <filepattern>...\n+\t  [--all | [--update | -u]] [--intent-to-add | -N]\n+\t  [--refresh] [--ignore-errors] [--] <filepattern>...\n \n DESCRIPTION\n -----------\n@@ -92,6 +92,15 @@ OPTIONS\n \tand add all untracked files that are not ignored by '.gitignore'\n \tmechanism.\n \n+\n+-N::\n+--intent-to-add::\n+\tRecord only the fact that the path will be added later. An entry\n+\tfor the path is placed in the index with no content. This is\n+\tuseful for, among other things, showing the unstaged content of\n+\tsuch files with 'git diff' and commiting them with 'git commit\n+\t-a'.\n+\n --refresh::\n \tDon't add the file(s), but only refresh their stat()\n \tinformation in the index.\n-- \n1.6.0.2.770.gb4241.dirty\n"}]}