Variable: magit-module-sections-hook

magit-module-sections-hook is a customizable variable defined in magit-submodule.el.

Value

(magit-insert-modules-overview
 magit-insert-modules-unpulled-from-upstream
 magit-insert-modules-unpulled-from-pushremote
 magit-insert-modules-unpushed-to-upstream
 magit-insert-modules-unpushed-to-pushremote)

Documentation

Hook run by magit-insert-modules.

That function isn't part of magit-status-sections-hooks default value, so you have to add it yourself for this hook to have any effect.

This variable was added, or its default value changed, in magit version 2.11.0.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-submodule.el
;;; Options

(defcustom magit-module-sections-hook
  (list #'magit-insert-modules-overview
        #'magit-insert-modules-unpulled-from-upstream
        #'magit-insert-modules-unpulled-from-pushremote
        #'magit-insert-modules-unpushed-to-upstream
        #'magit-insert-modules-unpushed-to-pushremote)
  "Hook run by `magit-insert-modules'.

That function isn't part of `magit-status-sections-hook's default
value, so you have to add it yourself for this hook to have any
effect."
  :package-version '(magit . "2.11.0")
  :group 'magit-status
  :type 'hook)