+
+ (defun magit-rebase-unpushed (commit &optional args)
+ "Start an interactive rebase sequence over all unpushed commits."
+ (interactive (list (magit-get-tracked-branch)
+ (magit-rebase-arguments)))
+ (if (setq commit (magit-rebase-interactive-assert commit))
+ (magit-run-git-sequencer "rebase" "-i" commit args)
+ (magit-log-select
+ `(lambda (commit)
+ (magit-rebase-interactive (concat commit "^") (list ,@args))))))
+
+ (magit-define-popup-action 'magit-rebase-popup ?l "Rebase unpushed" 'magit-rebase-unpushed)