Function: git-commit-setup-capf
git-commit-setup-capf is a byte-compiled function defined in
git-commit.el.
Signature
(git-commit-setup-capf)
Documentation
Teach complete-symbol about dabbrev-capf.
When "git commit"'s "--verbose" argument is used, this allows completing modified symbols and other text appearing in the diff.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/git-commit.el
(defun git-commit-setup-capf ()
"Teach `complete-symbol' about `dabbrev-capf'.
When \"git commit\"'s \"--verbose\" argument is used, this allows
completing modified symbols and other text appearing in the diff."
(require 'dabbrev)
(unless dabbrev--abbrev-char-regexp
;; Initialize (not "reset") variables. See #5545.
(dabbrev--reset-global-variables))
(add-hook 'completion-at-point-functions #'dabbrev-capf -90 t))