Skip to content

Commit b35a184

Browse files
author
Lluís Vilanova
committed
magit-stgit-commit: Ignore name of patch at point when using '--all'
1 parent 418d3d3 commit b35a184

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

magit-stgit.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,9 @@ Use ARGS to pass additional arguments."
375375
"Permanently store patches into the stack base."
376376
(interactive (list (magit-stgit-read-patches t t t t nil)
377377
(magit-stgit-commit-arguments)))
378+
(when (and (member "--all" (car args))
379+
(= 1 (length patches)))
380+
(setq patches (list nil)))
378381
(magit-run-stgit-and-mark-remove patches "commit" args "--" patches))
379382

380383
(magit-define-popup magit-stgit-uncommit-popup

0 commit comments

Comments
 (0)