branch: elpa/magit
commit 4877485bcc8f04b76563f96a4ff299d3c3184ba4
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-diff:--ignore-submodules: Offer "none" choice
The description for `--ignore-submodules' in git-diff(1) claims that
the default is "all", when in actuality it is "none" for `git diff'
and "untracked" for `git status'.
To allow `magit-status' to show all modified modules the same way as
`git status', make "none" available as a choice. Users will have to
explicitly set and save that value.
---
lisp/magit-diff.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/magit-diff.el b/lisp/magit-diff.el
index ce3f8050c8..484a6a02b6 100644
--- a/lisp/magit-diff.el
+++ b/lisp/magit-diff.el
@@ -1214,6 +1214,7 @@ and `:slant'."
(defun magit-diff-select-ignore-submodules (&rest _ignored)
(magit-read-char-case "Ignore submodules " t
+ (?n "[n]one" "none")
(?u "[u]ntracked" "untracked")
(?d "[d]irty" "dirty")
(?a "[a]ll" "all")))