{"thread":{"id":"8016","subject":"[PATCH] Remove mention of -o|--only in SYNOPSYS of git-commit.","startedAt":"2007-05-07T08:21:54Z","lastAt":"2007-05-07T08:21:54Z","messageCount":1,"participants":["Matthieu Moy"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"41307","messageId":"11785261143658-git-send-email-Matthieu.Moy@imag.fr","threadId":"8016","inReplyTo":null,"subject":"[PATCH] Remove mention of -o|--only in SYNOPSYS of git-commit.","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@imag.fr","sentAt":"2007-05-07T08:21:54Z","receivedAt":"2007-05-07T08:21:54Z","isPatch":true,"sender":{"key":"git@matthieu-moy.fr","avatar":"https://avatars.githubusercontent.com/u/14709?v=4"},"body":"This flag is actually useless since it is the default behavior, and\nwas mentionned in the SYNOPSYS, but not actually documented. Better\njust deprecate it.\n\nSigned-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>\n---\n Documentation/git-commit.txt |    4 ++--\n git-commit.sh                |    4 +++-\n 2 files changed, 5 insertions(+), 3 deletions(-)\n\ndiff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt\nindex 53a7bb0..4324ca0 100644\n--- a/Documentation/git-commit.txt\n+++ b/Documentation/git-commit.txt\n@@ -11,7 +11,7 @@ SYNOPSIS\n 'git-commit' [-a | --interactive] [-s] [-v]\n \t   [(-c | -C) <commit> | -F <file> | -m <msg> | --amend]\n \t   [--no-verify] [-e] [--author <author>]\n-\t   [--] [[-i | -o ]<file>...]\n+\t   [--] [[-i] <files>...]\n \n DESCRIPTION\n -----------\n@@ -91,7 +91,7 @@ OPTIONS\n \n \tUsed to amend the tip of the current branch. Prepare the tree\n \tobject you would want to replace the latest commit as usual\n-\t(this includes the usual -i/-o and explicit paths), and the\n+\t(this includes the usual -i and explicit paths), and the\n \tcommit log editor is seeded with the commit message from the\n \ttip of the current branch. The commit you create replaces the\n \tcurrent tip -- if it was a merge, it will have the parents of\ndiff --git a/git-commit.sh b/git-commit.sh\nindex f28fc24..3913097 100755\n--- a/git-commit.sh\n+++ b/git-commit.sh\n@@ -3,7 +3,7 @@\n # Copyright (c) 2005 Linus Torvalds\n # Copyright (c) 2006 Junio C Hamano\n \n-USAGE='[-a | --interactive] [-s] [-v] [--no-verify] [-m <message> | -F <logfile> | (-C|-c) <commit> | --amend] [-u] [-e] [--author <author>] [[-i | -o] <path>...]'\n+USAGE='[-a | --interactive] [-s] [-v] [--no-verify] [-m <message> | -F <logfile> | (-C|-c) <commit> | --amend] [-u] [-e] [--author <author>] [[-i] <path>...]'\n SUBDIRECTORY_OK=Yes\n . git-sh-setup\n require_work_tree\n@@ -138,6 +138,8 @@ do\n \t\tshift\n \t\t;;\n \t-o|--o|--on|--onl|--only)\n+                echo >&2 \"Warning: --only option is now the default.\"\n+                echo >&2 \"It will be removed in a future version of git.\"\n \t\tonly=t\n \t\tshift\n \t\t;;\n-- \n1.5.1.1\n"}]}