Skip to content

Commit

Permalink
magit-stgit-commit: Ignore name of patch at point when using '--all'
Browse files Browse the repository at this point in the history
  • Loading branch information
Lluís Vilanova committed Jan 25, 2015
1 parent 418d3d3 commit b35a184
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions magit-stgit.el
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ Use ARGS to pass additional arguments."
"Permanently store patches into the stack base."
(interactive (list (magit-stgit-read-patches t t t t nil)
(magit-stgit-commit-arguments)))
(when (and (member "--all" (car args))
(= 1 (length patches)))
(setq patches (list nil)))
(magit-run-stgit-and-mark-remove patches "commit" args "--" patches))

(magit-define-popup magit-stgit-uncommit-popup
Expand Down

0 comments on commit b35a184

Please sign in to comment.