Function: magit-gitignore-on-system
magit-gitignore-on-system is an autoloaded, interactive and
byte-compiled function defined in magit-gitignore.el.
Signature
(magit-gitignore-on-system ARG1)
Documentation
Add the Git ignore RULE to the file specified by core.excludesFile.
Rules that are defined in that file affect all local repositories.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-gitignore.el
;;;###autoload(autoload 'magit-gitignore-on-system "magit-gitignore" nil t)
(transient-define-suffix magit-gitignore-on-system (rule)
"Add the Git ignore RULE to the file specified by `core.excludesFile'.
Rules that are defined in that file affect all local repositories."
:inapt-if-not (##magit-get "core.excludesfile")
:description (##format "privately for all repositories (%s)"
(or (magit-get "core.excludesfile")
"core.excludesfile is not set"))
(interactive (list (magit-gitignore-read-pattern)))
(if-let ((file (magit-get "core.excludesFile")))
(magit--gitignore rule file)
(error "Variable `core.excludesFile' isn't set")))