aboutsummaryrefslogtreecommitdiff
path: root/git-commit.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-02-12 23:55:07 -0800
committerJunio C Hamano <junkio@cox.net>2006-02-12 23:55:07 -0800
commit4170a19587280eeb3663a47a6fd993910de78076 (patch)
tree8dbb8b720df881ff961cd01a9b531650b457754c /git-commit.sh
parentbd9ca0baff88107e26915cdaaf9821dc70a187e3 (diff)
downloadgit-4170a19587280eeb3663a47a6fd993910de78076.tar.gz
git-4170a19587280eeb3663a47a6fd993910de78076.tar.xz
git-commit: Now --only semantics is the default.
This changes the "git commit paths..." to default to --only semantics from traditional --include semantics, as agreed on the list. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-commit.sh')
-rwxr-xr-xgit-commit.sh9
1 files changed, 3 insertions, 6 deletions
diff --git a/git-commit.sh b/git-commit.sh
index 59551d99f..ab5e6bc1c 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] [-i] [-s] [-v] [--no-verify] [-m <message> | -F <logfile> | (-C|-c) <commit>] [-e] [--author <author>] [<path>...]'
+USAGE='[-a] [-s] [-v] [--no-verify] [-m <message> | -F <logfile> | (-C|-c) <commit>] [-e] [--author <author>] [[-i | -o] <path>...]'
SUBDIRECTORY_OK=Yes
. git-sh-setup
@@ -340,11 +340,8 @@ case "$#,$also$only" in
0,)
;;
*,)
- echo >&2 "assuming --include paths..."
- also=t
- # Later when switch the defaults, we will replace them with these:
- # echo >&2 "assuming --only paths..."
- # also=
+ echo >&2 "assuming --only paths..."
+ also=
# If we are going to launch an editor, the message won't be
# shown without this...