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>
This commit is contained in:
@ -64,6 +64,9 @@ do
|
|||||||
use_commit="$1"
|
use_commit="$1"
|
||||||
no_edit=t
|
no_edit=t
|
||||||
shift ;;
|
shift ;;
|
||||||
|
-e|--e|--ed|--edi|--edit)
|
||||||
|
no_edit=
|
||||||
|
shift ;;
|
||||||
-s|--s|--si|--sig|--sign|--signo|--signof|--signoff)
|
-s|--s|--si|--sig|--sign|--signo|--signof|--signoff)
|
||||||
signoff=t
|
signoff=t
|
||||||
shift ;;
|
shift ;;
|
||||||
|
Reference in New Issue
Block a user