@@ -249,6 +249,7 @@ Else, asks the user for a patch name."
249
249
; ;
250
250
(?N " New" magit-stgit-new-popup)
251
251
(?n " Rename" magit-stgit-rename)
252
+ (?e " Edit" magit-stgit-edit-popup)
252
253
(?c " Commit" magit-stgit-commit-popup)
253
254
(?C " Uncommit" magit-stgit-uncommit-popup)
254
255
(?k " Delete" magit-stgit-delete-popup)
@@ -298,6 +299,22 @@ Use ARGS to pass additional arguments."
298
299
(interactive (magit-stgit-new-arguments))
299
300
(magit-run-stgit-async " new" args))
300
301
302
+ (magit-define-popup magit-stgit-edit-popup
303
+ " Popup console for StGit edit."
304
+ 'magit-popups
305
+ :switches '((?s " Add \" Signed-off-by:\" line" " --sign" )
306
+ (?a " Add \" Acked-by:\" line" " --ack" ))
307
+ :actions '((?e " Edit" magit-stgit-edit))
308
+ :default-action #'magit-stgit-edit )
309
+
310
+ ;;;### autoload
311
+ (defun magit-stgit-edit (patch &rest args )
312
+ " Edit the description of an existing StGit PATCH.
313
+ Use ARGS to pass additional arguments."
314
+ (interactive (list (magit-stgit-read-patches nil nil t nil " Edit patch (default is top)" )
315
+ (magit-stgit-edit-arguments)))
316
+ (magit-run-stgit-async " edit" " --edit" args " --" patch))
317
+
301
318
(magit-define-popup magit-stgit-float-popup
302
319
" Popup console for StGit float."
303
320
'magit-popups
@@ -547,6 +564,8 @@ Use ARGS to pass additional arguments."
547
564
:help " Create a new StGit patch" ]
548
565
[" Rename patch" magit-stgit-rename
549
566
:help " Rename a patch" ]
567
+ [" Edit patch" magit-stgit-edit-popup
568
+ :help " Edit a patch" ]
550
569
[" Commit patch" magit-stgit-commit-popup
551
570
:help " Permanently store the base patch into the stack base" ]
552
571
[" Uncommit patch" magit-stgit-uncommit-popup
0 commit comments