Function: magit--display-core-upgrade-instructions

magit--display-core-upgrade-instructions is a byte-compiled function defined in magit-section.el.

Signature

(magit--display-core-upgrade-instructions PACKAGE VERSION)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-section-20260731.2248/magit-section.el
(defun magit--display-core-upgrade-instructions (package version)
  (display-warning 'magit
                   (substitute-command-keys
                    (format "\
Magit requires `%s' >= %s,
but due to bad defaults, Emacs' package manager, refuses to
upgrade this and other built-in packages to higher releases
from GNU Elpa.

To fix this, you have to add this to your init file:

  (setq package-install-upgrade-built-in t)

Then evaluate that expression by placing the cursor after it
and typing \\[eval-last-sexp].

Once you have done that, you have to explicitly upgrade `%s':

  \\[package-install] %s \\`RET'

Then you also must make sure the updated version is loaded,
by evaluating this form:

  (progn (unload-feature \\='%s t) (require \\='%s))

If this does not work, then try uninstalling Magit and all of its
dependencies.  After that exit and restart Emacs, and only then
reinstalling Magit.

If you don't use the `package' package manager but still get
this warning, then your chosen package manager likely has a
similar defect."
                            package version package package package package))
                   :emergency))