commit 71793acdd9f926ea52d034b17ac3465e3a810799 Author: Olivier Goffart Date: Tue Mar 17 19:41:40 2009 +0100 rebase interactive: add the possibility to easily edit the message log of commits diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh index 3dc659d..6ded58e 100755 --- a/git-rebase--interactive.sh +++ b/git-rebase--interactive.sh @@ -406,6 +406,16 @@ do_next () { die_with_patch $sha1 "" fi ;; + message|m) + comment_for_reflog message + + mark_action_done + + pick_one $sha1 || + die_with_patch $sha1 "Could not apply $sha1... $rest" + + git commit --amend || failed=t + ;; *) warn "Unknown command: $command $sha1 $rest" die_with_patch $sha1 "Please fix this in the file $TODO." @@ -730,6 +740,7 @@ first and then run 'git rebase --continue' again." # p, pick = use commit # e, edit = use commit, but stop for amending # s, squash = use commit, but meld into previous commit +# m, message = use commit and promt the editor to edit the message log # # If you remove a line here THAT COMMIT WILL BE LOST. # However, if you remove everything, the rebase will be aborted.