Skip to content

Commit 082a2e8

Browse files
author
Lluís Vilanova
committed
Move popup argument customization to its own group
1 parent 22097a4 commit 082a2e8

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

magit-stgit.el

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@
6666
"StGit support for Magit."
6767
:group 'magit-extensions)
6868

69+
(defgroup magit-stgit-commands nil
70+
"Options controlling behavior of certain commands."
71+
:group 'magit-stgit)
72+
73+
6974
(defcustom magit-stgit-executable "stg"
7075
"The name of the StGit executable."
7176
:group 'magit-stgit
@@ -245,7 +250,7 @@ Else, asks the user for a patch name."
245250

246251
(magit-define-popup magit-stgit-popup
247252
"Popup console for StGit commands."
248-
'magit-popups
253+
'magit-stgit-commands
249254
:actions '((?i "Init" magit-stgit-init)
250255
;;
251256
(?N "New" magit-stgit-new-popup)
@@ -285,7 +290,7 @@ Else, asks the user for a patch name."
285290

286291
(magit-define-popup magit-stgit-new-popup
287292
"Popup console for StGit new."
288-
'magit-popups
293+
'magit-stgit-commands
289294
:switches '((?a "Add \"Acked-by:\" line" "--ack")
290295
(?s "Add \"Signed-off-by:\" line" "--sign"))
291296
:options '((?n "Set patch name" ""
@@ -302,7 +307,7 @@ Use ARGS to pass additional arguments."
302307

303308
(magit-define-popup magit-stgit-edit-popup
304309
"Popup console for StGit edit."
305-
'magit-popups
310+
'magit-stgit-commands
306311
:switches '((?s "Add \"Signed-off-by:\" line" "--sign")
307312
(?a "Add \"Acked-by:\" line" "--ack"))
308313
:actions '((?e "Edit" magit-stgit-edit))
@@ -318,7 +323,7 @@ Use ARGS to pass additional arguments."
318323

319324
(magit-define-popup magit-stgit-float-popup
320325
"Popup console for StGit float."
321-
'magit-popups
326+
'magit-stgit-commands
322327
:switches '((?k "Keep the local changes" "--keep"))
323328
:actions '((?f "Float" magit-stgit-float))
324329
:default-action #'magit-stgit-float)
@@ -341,7 +346,7 @@ Use ARGS to pass additional arguments."
341346

342347
(magit-define-popup magit-stgit-sink-popup
343348
"Popup console for StGit sink."
344-
'magit-popups
349+
'magit-stgit-commands
345350
:switches '((?k "Keep the local changes" "--keep"))
346351
:options '((?t "Sink patches below the target patch (else to bottom)"
347352
"--to="
@@ -365,7 +370,7 @@ Use ARGS to pass additional arguments."
365370

366371
(magit-define-popup magit-stgit-commit-popup
367372
"Popup console for StGit commit."
368-
'magit-popups
373+
'magit-stgit-commands
369374
:switches '((?a "Commit all applied patches" "--all"))
370375
:options '((?n "Commit the specified number of patches" "--number=" read-number))
371376
:actions '((?c "Commit" magit-stgit-commit))
@@ -383,7 +388,7 @@ Use ARGS to pass additional arguments."
383388

384389
(magit-define-popup magit-stgit-uncommit-popup
385390
"Popup console for StGit uncommit."
386-
'magit-popups
391+
'magit-stgit-commands
387392
:options '((?n "Uncommit the specified number of commits" "--num=" read-number))
388393
:actions '((?C "Uncommit" magit-stgit-uncommit))
389394
:default-action #'magit-stgit-uncommit)
@@ -396,7 +401,7 @@ Use ARGS to pass additional arguments."
396401

397402
(magit-define-popup magit-stgit-refresh-popup
398403
"Popup console for StGit refresh."
399-
'magit-popups
404+
'magit-stgit-commands
400405
:switches '((?u "Only update the current patch files" "--update")
401406
(?i "Refresh from index instead of worktree" "--index")
402407
(?F "Force refresh even if index is dirty" "--force")
@@ -429,7 +434,7 @@ into the series."
429434

430435
(magit-define-popup magit-stgit-rebase-popup
431436
"Popup console for StGit rebase."
432-
'magit-popups
437+
'magit-stgit-commands
433438
:switches '((?n "Do not push the patches back after rebasing" "--nopush")
434439
(?m "Check for patches merged upstream" "--merged"))
435440
:actions '((?R "Rebase" magit-stgit-rebase))
@@ -452,7 +457,7 @@ Use ARGS to pass additional arguments"
452457

453458
(magit-define-popup magit-stgit-delete-popup
454459
"Popup console for StGit delete."
455-
'magit-popups
460+
'magit-stgit-commands
456461
:switches '((?s "Spill patch contents to worktree and index" "--spill"))
457462
:actions '((?k "Delete" magit-stgit-delete))
458463
:default-action #'magit-stgit-delete)
@@ -484,7 +489,7 @@ Use ARGS to pass additional arguments."
484489

485490
(magit-define-popup magit-stgit-goto-popup
486491
"Popup console for StGit goto."
487-
'magit-popups
492+
'magit-stgit-commands
488493
:switches '((?k "Keep the local changes" "--keep")
489494
(?m "Check for patches merged upstream" "--merged"))
490495
:actions '((?a "Goto" magit-stgit-goto))
@@ -506,7 +511,7 @@ Use ARGS to pass additional arguments."
506511

507512
(magit-define-popup magit-stgit-undo-popup
508513
"Popup console for StGit undo."
509-
'magit-popups
514+
'magit-stgit-commands
510515
:options '((?n "Undo the last N commands" "--number=" read-number))
511516
:switches '((?h "Discard changes in index/worktree" "--hard"))
512517
:actions '((?z "Undo" magit-stgit-undo))
@@ -521,7 +526,7 @@ Use ARGS to pass additional arguments."
521526

522527
(magit-define-popup magit-stgit-redo-popup
523528
"Popup console for StGit redo."
524-
'magit-popups
529+
'magit-stgit-commands
525530
:options '((?n "Undo the last N commands" "--number=" read-number))
526531
:switches '((?h "Discard changes in index/worktree" "--hard"))
527532
:actions '((?Z "Redo" magit-stgit-redo))

0 commit comments

Comments
 (0)