@@ -183,7 +183,7 @@ Any list in ARGS is flattened."
183
183
original)
184
184
sorted))
185
185
186
- (defun magit-stgit-read-patches (use-region use-marks use-point prompt )
186
+ (defun magit-stgit-read-patches (use-region use-marks use-point require-match prompt )
187
187
" Return list of selected patches.
188
188
If USE-REGION and there is an active region, return marked
189
189
patches in it (if USE-MARKS), or all patches in the region if
@@ -201,7 +201,7 @@ PROMPT."
201
201
(and use-marks
202
202
(magit-stgit-patches-sorted magit-stgit-marked-patches))
203
203
(list (or (and use-point (magit-section-when stgit-patch))
204
- (and prompt (magit-stgit-read-patch prompt t )))))))
204
+ (and prompt (magit-stgit-read-patch prompt require-match )))))))
205
205
206
206
; ;; Marking
207
207
@@ -215,7 +215,7 @@ PROMPT."
215
215
(defun magit-stgit-mark-add (patches )
216
216
" Set mark of patches.
217
217
See `magit-stgit-mark-toggle' for the meaning of PATCHES."
218
- (interactive (list (magit-stgit-read-patches t nil t " Patch name" )))
218
+ (interactive (list (magit-stgit-read-patches t nil t t " Patch name" )))
219
219
(mapc (lambda (patch )
220
220
(add-to-list 'magit-stgit-marked-patches patch))
221
221
patches)
@@ -226,7 +226,7 @@ See `magit-stgit-mark-toggle' for the meaning of PATCHES."
226
226
(defun magit-stgit-mark-remove (patches )
227
227
" Unset mark of patches.
228
228
See `magit-stgit-mark-toggle' for the meaning of PATCHES."
229
- (interactive (list (magit-stgit-read-patches t nil t " Patch name" )))
229
+ (interactive (list (magit-stgit-read-patches t nil t t " Patch name" )))
230
230
(mapc (lambda (patch )
231
231
(setq magit-stgit-marked-patches (delete patch magit-stgit-marked-patches)))
232
232
patches)
@@ -240,7 +240,7 @@ If given, PATCHES specifies the patch names.
240
240
Else, if there is an active region, toggles these.
241
241
Else, if point is in an StGit section, toggles the patch at point.
242
242
Else, asks the user for a patch name."
243
- (interactive (list (magit-stgit-read-patches t nil t " Patch name" )))
243
+ (interactive (list (magit-stgit-read-patches t nil t t " Patch name" )))
244
244
(mapc (lambda (patch )
245
245
(if (magit-stgit-mark-contains patch)
246
246
(magit-stgit-mark-remove (list patch))
@@ -317,7 +317,7 @@ Use ARGS to pass additional arguments."
317
317
(defun magit-stgit-float (patches &rest args )
318
318
" Float StGit PATCHES to the top.
319
319
Use ARGS to pass additional arguments."
320
- (interactive (list (magit-stgit-read-patches t t t " Float patch" )
320
+ (interactive (list (magit-stgit-read-patches t t t t " Float patch" )
321
321
(magit-stgit-float-arguments)))
322
322
(magit-run-stgit-and-mark-remove patches " float" args " --" patches))
323
323
@@ -343,7 +343,7 @@ Use ARGS to pass additional arguments."
343
343
(defun magit-stgit-sink (patches &rest args )
344
344
" Sink StGit PATCHES deeper down the stack.
345
345
Use ARGS to pass additional arguments."
346
- (interactive (list (magit-stgit-read-patches t t t " Sink patch" )
346
+ (interactive (list (magit-stgit-read-patches t t t t " Sink patch" )
347
347
(magit-stgit-sink-arguments)))
348
348
(when (and (called-interactively-p 'any )
349
349
(not magit-current-popup))
@@ -364,7 +364,7 @@ Use ARGS to pass additional arguments."
364
364
;;;### autoload
365
365
(defun magit-stgit-commit (patches &rest args )
366
366
" Permanently store patches into the stack base."
367
- (interactive (list (magit-stgit-read-patches t t t nil )
367
+ (interactive (list (magit-stgit-read-patches t t t t nil )
368
368
(magit-stgit-commit-arguments)))
369
369
(magit-run-stgit-and-mark-remove patches " commit" args " --" patches))
370
370
@@ -436,7 +436,7 @@ into the series."
436
436
" Delete StGit patches.
437
437
Argument PATCHES is a list of patchnames.
438
438
Use ARGS to pass additional arguments."
439
- (interactive (list (magit-stgit-read-patches t t t " Delete patch" )
439
+ (interactive (list (magit-stgit-read-patches t t t t " Delete patch" )
440
440
(magit-stgit-delete-arguments)))
441
441
(when (and (called-interactively-p 'any )
442
442
(not magit-current-popup)
@@ -464,14 +464,14 @@ Use ARGS to pass additional arguments."
464
464
(defun magit-stgit-goto (patch &rest args )
465
465
" Set PATCH as target of StGit push and pop operations.
466
466
Use ARGS to pass additional arguments."
467
- (interactive (list (magit-stgit-read-patches nil nil t " Goto patch" )
467
+ (interactive (list (magit-stgit-read-patches nil nil t t " Goto patch" )
468
468
(magit-stgit-goto-arguments)))
469
469
(magit-run-stgit " goto" patch args))
470
470
471
471
;;;### autoload
472
472
(defun magit-stgit-show (patch )
473
473
" Show diff of a StGit patch."
474
- (interactive (magit-stgit-read-patches nil nil t " Show patch" ))
474
+ (interactive (magit-stgit-read-patches nil nil t t " Show patch" ))
475
475
(magit-show-commit (magit-stgit-lines " id" patch)))
476
476
477
477
(magit-define-popup magit-stgit-undo-popup
0 commit comments