notes: implement 'git notes copy --stdin'
[gitweb.git] / git-rebase.sh
index eddc02875f3802844a4c284aaedef48417f4580d..417a1a95cda1b997b5d468692e958d73b0468339 100755 (executable)
@@ -79,6 +79,7 @@ continue_merge () {
                then
                        printf "Committed: %0${prec}d " $msgnum
                fi
+               echo "$cmt $(git rev-parse HEAD^0)" >> "$dotest/rewritten"
        else
                if test -z "$GIT_QUIET"
                then
@@ -153,6 +154,10 @@ move_to_original_branch () {
 
 finish_rb_merge () {
        move_to_original_branch
+       if test -x "$GIT_DIR"/hooks/post-rewrite &&
+               test -s "$dotest"/rewritten; then
+               "$GIT_DIR"/hooks/post-rewrite rebase < "$dotest"/rewritten
+       fi
        rm -r "$dotest"
        say All done.
 }