diff options
author | Björn Gustavsson <bgustavsson@gmail.com> | 2009-10-07 08:13:23 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-10-07 21:46:41 -0700 |
commit | 6741aa6c399dec3d8f0b25699a73b8fcf974d702 (patch) | |
tree | c18491e3e7061fd82a47dbd7536df2595219e784 /t/lib-rebase.sh | |
parent | dbc1b1f71052c084a84b5c395e1cb4b5ae526fcb (diff) | |
download | git-6741aa6c399dec3d8f0b25699a73b8fcf974d702.tar.gz |
Teach 'rebase -i' the command "reword"
Make it easier to edit just the commit message for a commit
using 'git rebase -i' by introducing the "reword" command.
Signed-off-by: Björn Gustavsson <bgustavsson@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/lib-rebase.sh')
-rw-r--r-- | t/lib-rebase.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/lib-rebase.sh b/t/lib-rebase.sh index 260a231933..62f452c8ea 100644 --- a/t/lib-rebase.sh +++ b/t/lib-rebase.sh @@ -9,8 +9,8 @@ # # "[<lineno1>] [<lineno2>]..." # -# If a line number is prefixed with "squash" or "edit", the respective line's -# command will be replaced with the specified one. +# If a line number is prefixed with "squash", "edit", or "reword", the +# respective line's command will be replaced with the specified one. set_fake_editor () { echo "#!$SHELL_PATH" >fake-editor.sh @@ -32,7 +32,7 @@ cat "$1".tmp action=pick for line in $FAKE_LINES; do case $line in - squash|edit) + squash|edit|reword) action="$line";; *) echo sed -n "${line}s/^pick/$action/p" |