Function: magit-gitignore-in-gitdir
magit-gitignore-in-gitdir is an autoloaded, interactive and
byte-compiled function defined in magit-gitignore.el.
Signature
(magit-gitignore-in-gitdir ARG1)
Documentation
Add the Git ignore RULE to "$GIT_DIR/info/exclude".
Rules in that file only affects this clone of the repository. If the repository has multiple worktrees, the rules apply to all worktrees.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260822.1158/magit-gitignore.el
;;;###autoload(autoload 'magit-gitignore-in-gitdir "magit-gitignore" nil t)
(transient-define-suffix magit-gitignore-in-gitdir (rule)
"Add the Git ignore RULE to \"$GIT_DIR/info/exclude\".
Rules in that file only affects this clone of the repository. If the
repository has multiple worktrees, the rules apply to all worktrees."
:description "privately (.git/info/exclude)"
(interactive (list (magit-gitignore-read-pattern)))
(magit--gitignore
rule
(expand-file-name "info/exclude" (magit-gitdir nil t))))