Function: git-commit-setup-bug-reference

git-commit-setup-bug-reference is a natively compiled function defined in git-commit.el.

Signature

(git-commit-setup-bug-reference)

Documentation

Turn on bug-reference-mode while working around a limitation of VC.

bug-reference-try-setup-from-vc doesn't work when visiting a file in the Git directory.

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/git-commit.el
(defun git-commit-setup-bug-reference ()
  "Turn on `bug-reference-mode' while working around a limitation of VC.
`bug-reference-try-setup-from-vc' doesn't work when visiting a file in
the Git directory."
  (magit-with-toplevel
    (let ((buffer-file-name nil))
      (bug-reference-mode 1))))