summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-30 04:25:19 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-08-30 04:25:19 (GMT)
commitbc4af68a1a876a9eb6ff030b88b76a90fd09a9ea (patch)
treeee5c1ec36e5e92528ad646773056d0654703bfa2
parent9fa4db544e2e4d6c931f6adabc5270daec041536 (diff)
downloadgit-bc4af68a1a876a9eb6ff030b88b76a90fd09a9ea.zip
git-bc4af68a1a876a9eb6ff030b88b76a90fd09a9ea.tar.gz
git-bc4af68a1a876a9eb6ff030b88b76a90fd09a9ea.tar.bz2
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 4987e37..cd28dde 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 ;;