Commit 13b32ae1 authored by Jonas Bernoulli's avatar Jonas Bernoulli

Fix regression preventing modules from being un-/staged

Fixes #3654.
parent f441cf6d
......@@ -2,3 +2,6 @@
** Breaking changes
** Changes since v2.90.0
** Fixes since v2.90.0
- Staging and unstaging submodules while ~diff.submodule~'s value is ~log~
broke shortly before the v2.90.0 release. #3654
......@@ -208,10 +208,10 @@ so causes the change to be applied to the index as well."
(defun magit-apply--get-selection ()
(or (magit-region-sections '(hunk file) t)
(or (magit-region-sections '(hunk file module) t)
(let ((section (magit-current-section)))
(pcase (oref section type)
((or `hunk `file) section)
((or `hunk `file `module) section)
((or `staged `unstaged `untracked
`stashed-index `stashed-worktree `stashed-untracked)
(oref section children))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment