* [PATCH] Remove mention of -o|--only in SYNOPSYS of git-commit.
@ 2007-05-07 8:21 Matthieu Moy
0 siblings, 0 replies; only message in thread
From: Matthieu Moy @ 2007-05-07 8:21 UTC (permalink / raw)
To: git; +Cc: Matthieu Moy
This flag is actually useless since it is the default behavior, and
was mentionned in the SYNOPSYS, but not actually documented. Better
just deprecate it.
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
---
Documentation/git-commit.txt | 4 ++--
git-commit.sh | 4 +++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt
index 53a7bb0..4324ca0 100644
--- a/Documentation/git-commit.txt
+++ b/Documentation/git-commit.txt
@@ -11,7 +11,7 @@ SYNOPSIS
'git-commit' [-a | --interactive] [-s] [-v]
[(-c | -C) <commit> | -F <file> | -m <msg> | --amend]
[--no-verify] [-e] [--author <author>]
- [--] [[-i | -o ]<file>...]
+ [--] [[-i] <files>...]
DESCRIPTION
-----------
@@ -91,7 +91,7 @@ OPTIONS
Used to amend the tip of the current branch. Prepare the tree
object you would want to replace the latest commit as usual
- (this includes the usual -i/-o and explicit paths), and the
+ (this includes the usual -i and explicit paths), and the
commit log editor is seeded with the commit message from the
tip of the current branch. The commit you create replaces the
current tip -- if it was a merge, it will have the parents of
diff --git a/git-commit.sh b/git-commit.sh
index f28fc24..3913097 100755
--- a/git-commit.sh
+++ b/git-commit.sh
@@ -3,7 +3,7 @@
# Copyright (c) 2005 Linus Torvalds
# Copyright (c) 2006 Junio C Hamano
-USAGE='[-a | --interactive] [-s] [-v] [--no-verify] [-m <message> | -F <logfile> | (-C|-c) <commit> | --amend] [-u] [-e] [--author <author>] [[-i | -o] <path>...]'
+USAGE='[-a | --interactive] [-s] [-v] [--no-verify] [-m <message> | -F <logfile> | (-C|-c) <commit> | --amend] [-u] [-e] [--author <author>] [[-i] <path>...]'
SUBDIRECTORY_OK=Yes
. git-sh-setup
require_work_tree
@@ -138,6 +138,8 @@ do
shift
;;
-o|--o|--on|--onl|--only)
+ echo >&2 "Warning: --only option is now the default."
+ echo >&2 "It will be removed in a future version of git."
only=t
shift
;;
--
1.5.1.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-07 8:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-07 8:21 [PATCH] Remove mention of -o|--only in SYNOPSYS of git-commit Matthieu Moy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).