Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-30 08:25:19 +0400
committerJunio C Hamano <junkio@cox.net>2005-08-30 08:25:19 +0400
commitbc4af68a1a876a9eb6ff030b88b76a90fd09a9ea (patch)
treeee5c1ec36e5e92528ad646773056d0654703bfa2 /git-commit-script
parent9fa4db544e2e4d6c931f6adabc5270daec041536 (diff)
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>
Diffstat (limited to 'git-commit-script')
-rwxr-xr-xgit-commit-script3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-commit-script b/git-commit-script
index 4987e37861..cd28dde64d 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 ;;