commit 5d784b748328c7bccfddab7edba5a9dcf70518b8 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 314cd36..91714d6 100755 --- a/git-rebase--interactive.sh +++ b/git-rebase--interactive.sh @@ -406,6 +406,16 @@ do_next () { die_with_patch $sha1 "" fi ;; + rephrase|r) + 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." @@ -754,6 +764,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 +# r, rephrase = 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.