branch: elpa/magit
commit d7e0ee3a3829e056faf886ba5186545f87206870
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    magit-status: Do not ignore any submodules by default
    
    The default for the respective variable is "untracked" (despite the
    claiming it is "all", which would be worse).  Because "git status"
    shows all submodules by default, make `magit-status' do the same.
    
    Closes #5448.
---
 docs/CHANGELOG.4     | 3 +++
 lisp/magit-status.el | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/docs/CHANGELOG.4 b/docs/CHANGELOG.4
index b1d9a269a4..e8d9a5a71b 100644
--- a/docs/CHANGELOG.4
+++ b/docs/CHANGELOG.4
@@ -36,6 +36,9 @@
 
 - Added help text for the ~Filter!~ status section.  #5121
 
+- By default, submodules with untracked content are now also listed
+  the status of the super-repository.  #5448
+
 Bugfixes:
 
 - ~magit-ignore-submodules-p~ didn't return ~nil~ for ~none~.
diff --git a/lisp/magit-status.el b/lisp/magit-status.el
index 6b37a8e3ff..e3ceafe0f1 100644
--- a/lisp/magit-status.el
+++ b/lisp/magit-status.el
@@ -453,7 +453,7 @@ Type \\[magit-commit] to create a commit.
   (setq magit--imenu-group-types '(not branch commit)))
 
 (put 'magit-status-mode 'magit-diff-default-arguments
-     '("--no-ext-diff"))
+     '("--no-ext-diff" "--ignore-submodules=none"))
 (put 'magit-status-mode 'magit-log-default-arguments
      '("-n256" "--decorate"))
 

Reply via email to