Rewrite rebase to use git-format-patch piped to git-am.