aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-29 21:25:19 -0700
committerJunio C Hamano <junkio@cox.net>2005-08-29 21:25:19 -0700
commitbc4af68a1a876a9eb6ff030b88b76a90fd09a9ea (patch)
treeee5c1ec36e5e92528ad646773056d0654703bfa2
parent9fa4db544e2e4d6c931f6adabc5270daec041536 (diff)
downloadgit-bc4af68a1a876a9eb6ff030b88b76a90fd09a9ea.tar.gz
git-bc4af68a1a876a9eb6ff030b88b76a90fd09a9ea.tar.xz
git commit: Allow editing on all occasions.
Sometimes it may be handy to be able to edit messages that come from somewhere other than an existing commit. This makes 'git commit -F <file> -e' to start editor with the initial log message contents taken from <file>. Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-xgit-commit-script3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-commit-script b/git-commit-script
index 4987e3786..cd28dde64 100755
--- a/git-commit-script
+++ b/git-commit-script
@@ -64,6 +64,9 @@ do
use_commit="$1"
no_edit=t
shift ;;
+ -e|--e|--ed|--edi|--edit)
+ no_edit=
+ shift ;;
-s|--s|--si|--sig|--sign|--signo|--signof|--signoff)
signoff=t
shift ;;