@@ -261,7 +261,7 @@ Else, asks the user for a patch name."
261
261
; ;
262
262
(?g " Refresh" magit-stgit-refresh-popup)
263
263
(?r " Repair" magit-stgit-repair)
264
- (?R " Rebase" magit-stgit-rebase)
264
+ (?R " Rebase" magit-stgit-rebase-popup )
265
265
; ;
266
266
(?z " Undo" magit-stgit-undo-popup)
267
267
(?Z " Redo" magit-stgit-redo-popup)))
@@ -404,10 +404,19 @@ into the series."
404
404
(magit-run-stgit " repair" )
405
405
(message " Repairing series...done " ))
406
406
407
+ (magit-define-popup magit-stgit-rebase-popup
408
+ " Popup console for StGit rebase."
409
+ 'magit-popups
410
+ :switches '((?n " Do not push the patches back after rebasing" " --nopush" )
411
+ (?m " Check for patches merged upstream" " --merged" ))
412
+ :actions '((?R " Rebase" magit-stgit-rebase))
413
+ :default-action #'magit-stgit-rebase )
414
+
407
415
;;;### autoload
408
- (defun magit-stgit-rebase ()
409
- " Rebase a StGit patch series."
410
- (interactive )
416
+ (defun magit-stgit-rebase (&rest args )
417
+ " Rebase a StGit patch series.
418
+ Use ARGS to pass additional arguments"
419
+ (interactive (magit-stgit-rebase-arguments))
411
420
(let* ((branch (magit-get-current-branch))
412
421
(remote (magit-get-remote branch)))
413
422
(if (not (and remote branch))
@@ -416,7 +425,7 @@ into the series."
416
425
(message " Updating remote... " )
417
426
(magit-run-git-async " remote" " update" remote)
418
427
(message " Updating remote...done " ))
419
- (magit-run-stgit " rebase" (format " remotes/%s /%s " remote branch)))))
428
+ (magit-run-stgit " rebase" args " -- " (format " remotes/%s /%s " remote branch)))))
420
429
421
430
(magit-define-popup magit-stgit-delete-popup
422
431
" Popup console for StGit delete."
0 commit comments