summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9fa4db5)
raw | patch | inline | side by side (parent: 9fa4db5)
author | Junio C Hamano <junkio@cox.net> | |
Tue, 30 Aug 2005 04:25:19 +0000 (21:25 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 30 Aug 2005 04:25:19 +0000 (21:25 -0700) |
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>
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>
git-commit-script | patch | blob | history |
diff --git a/git-commit-script b/git-commit-script
index 4987e37861adac29af5bfd03a8d8e1e6932338e0..cd28dde64d2addb0c6df7007232778a84ea88e08 100755 (executable)
--- a/git-commit-script
+++ b/git-commit-script
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 ;;