{"thread":{"id":"9559","subject":"[PATCH] Clarify actual behavior of 'git add' and ignored files","startedAt":"2007-08-16T22:56:08Z","lastAt":"2007-08-16T22:56:08Z","messageCount":1,"participants":["Brian Downing"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"50905","messageId":"11873049683651-git-send-email-bdowning@lavos.net","threadId":"9559","inReplyTo":null,"subject":"[PATCH] Clarify actual behavior of 'git add' and ignored files","fromName":"Brian Downing","fromEmail":"bdowning@lavos.net","sentAt":"2007-08-16T22:56:08Z","receivedAt":"2007-08-16T22:56:08Z","isPatch":true,"sender":{"key":"bdowning@lavos.net","avatar":"https://avatars.githubusercontent.com/u/366426?v=4"},"body":"Signed-off-by: Brian Downing <bdowning@lavos.net>\n---\n Documentation/git-add.txt |   10 ++++++----\n 1 files changed, 6 insertions(+), 4 deletions(-)\n\ndiff --git a/Documentation/git-add.txt b/Documentation/git-add.txt\nindex dee38f8..3383aca 100644\n--- a/Documentation/git-add.txt\n+++ b/Documentation/git-add.txt\n@@ -28,10 +28,12 @@ you must run 'git add' again to add the new content to the index.\n The 'git status' command can be used to obtain a summary of which\n files have changes that are staged for the next commit.\n \n-The 'add' command can be used to add ignored files with `-f` (force)\n-option, but they have to be explicitly and exactly specified from the\n-command line.  File globbing and recursive behaviour do not add ignored\n-files.\n+The 'git add' command will not add ignored files by default.  If any\n+ignored files were explicitly specified on the command line, 'git add'\n+will fail with a list of ignored files.  Ignored files reached by\n+directory recursion or filename globbing will be silently ignored.\n+The 'add' command can be used to add ignored files with the `-f`\n+(force) option.\n \n Please see gitlink:git-commit[1] for alternative ways to add content to a\n commit.\n-- \n1.5.3.GIT\n"}]}