{"thread":{"id":"9647","subject":"[PATCH] Make usage documentation for git-add consistent.","startedAt":"2007-08-26T03:20:06Z","lastAt":"2007-08-26T03:20:06Z","messageCount":1,"participants":["Brian Hetro"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"51541","messageId":"20070826032006.GC7644@ruiner","threadId":"9647","inReplyTo":null,"subject":"[PATCH] Make usage documentation for git-add consistent.","fromName":"Brian Hetro","fromEmail":"whee@smaertness.net","sentAt":"2007-08-26T03:20:06Z","receivedAt":"2007-08-26T03:20:06Z","isPatch":true,"sender":{"key":"whee@smaertness.net","avatar":"https://gravatar.com/avatar/1d20c40734a674e76a0a58c6d122ef493291db306d613a40653a035084d557b9?d=mp&s=160"},"body":"The usage string for the executable was missing --refresh.  In\naddition, the documentation referred to \"file\", but the usage string\nreferred to \"filepattern\".  Updated the documentation to\n\"filepattern\", as git-add does handle patterns.\n\nSigned-off-by: Brian Hetro <whee@smaertness.net>\n---\n Documentation/git-add.txt |    6 ++++--\n builtin-add.c             |    2 +-\n 2 files changed, 5 insertions(+), 3 deletions(-)\n\ndiff --git a/Documentation/git-add.txt b/Documentation/git-add.txt\nindex 3383aca..e5efbc9 100644\n--- a/Documentation/git-add.txt\n+++ b/Documentation/git-add.txt\n@@ -7,7 +7,9 @@ git-add - Add file contents to the index\n \n SYNOPSIS\n --------\n-'git-add' [-n] [-v] [-f] [--interactive | -i] [-u] [--refresh] [--] <file>...\n+[verse]\n+'git-add' [-n] [-v] [-f] [--interactive | -i] [-u] [--refresh]\n+          [--] <filepattern>...\n \n DESCRIPTION\n -----------\n@@ -41,7 +43,7 @@ commit.\n \n OPTIONS\n -------\n-<file>...::\n+<filepattern>...::\n \tFiles to add content from.  Fileglobs (e.g. `*.c`) can\n \tbe given to add all matching files.  Also a\n \tleading directory name (e.g. `dir` to add `dir/file1`\ndiff --git a/builtin-add.c b/builtin-add.c\nindex 3dd4ded..b08e688 100644\n--- a/builtin-add.c\n+++ b/builtin-add.c\n@@ -14,7 +14,7 @@\n #include \"revision.h\"\n \n static const char builtin_add_usage[] =\n-\"git-add [-n] [-v] [-f] [--interactive | -i] [-u] [--] <filepattern>...\";\n+\"git-add [-n] [-v] [-f] [--interactive | -i] [-u] [--refresh] [--] <filepattern>...\";\n \n static int take_worktree_changes;\n static const char *excludes_file;\n-- \n1.5.3.rc6.23.g0058-dirty\n"}]}