@@ -258,7 +258,7 @@ Else, asks the user for a patch name."
258
258
(?s " Sink" magit-stgit-sink-popup)
259
259
; ;
260
260
(?\r " Show" magit-stgit-show)
261
- (?a " Goto" magit-stgit-goto)
261
+ (?a " Goto" magit-stgit-goto-popup )
262
262
; ;
263
263
(?g " Refresh" magit-stgit-refresh)
264
264
(?r " Repair" magit-stgit-repair)
@@ -448,11 +448,21 @@ Use ARGS to pass additional arguments."
448
448
(mapconcat (lambda (patch ) (format " `%s' " patch)) patches " , " ))))
449
449
(magit-run-stgit-and-mark-remove patches " delete" args " --" patches))))
450
450
451
+ (magit-define-popup magit-stgit-goto-popup
452
+ " Popup console for StGit goto."
453
+ 'magit-popups
454
+ :switches '((?k " Keep the local changes" " --keep" )
455
+ (?m " Check for patches merged upstream" " --merged" ))
456
+ :actions '((?a " Goto" magit-stgit-goto))
457
+ :default-action #'magit-stgit-goto )
458
+
451
459
;;;### autoload
452
- (defun magit-stgit-goto (patch )
453
- " Set PATCH as target of StGit push and pop operations."
454
- (interactive (magit-stgit-read-patches nil nil t " Goto patch" ))
455
- (magit-run-stgit " goto" patch))
460
+ (defun magit-stgit-goto (patch &rest args )
461
+ " Set PATCH as target of StGit push and pop operations.
462
+ Use ARGS to pass additional arguments."
463
+ (interactive (list (magit-stgit-read-patches nil nil t " Goto patch" )
464
+ (magit-stgit-goto-arguments)))
465
+ (magit-run-stgit " goto" patch args))
456
466
457
467
;;;### autoload
458
468
(defun magit-stgit-show (patch )
0 commit comments