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.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/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."
  :description "privately (.git/info/exclude)"
  (interactive (list (magit-gitignore-read-pattern)))
  (magit--gitignore rule (expand-file-name "info/exclude" (magit-gitdir))))