Variable: vc-follow-symlinks
vc-follow-symlinks is a customizable variable defined in
vc-hooks.el.gz.
Value
ask
Documentation
What to do if visiting a symbolic link to a file under version control.
Editing such a file through the link bypasses the version control system, which is dangerous and probably not what you want.
If this variable is t, VC follows the link and visits the real file,
telling you about it in the echo area. If it is ask, VC asks for
confirmation whether it should follow the link. If nil, the link is
visited and a warning displayed.
Probably introduced at or before Emacs version 19.31.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-hooks.el.gz
(defcustom vc-follow-symlinks 'ask
"What to do if visiting a symbolic link to a file under version control.
Editing such a file through the link bypasses the version control system,
which is dangerous and probably not what you want.
If this variable is t, VC follows the link and visits the real file,
telling you about it in the echo area. If it is `ask', VC asks for
confirmation whether it should follow the link. If nil, the link is
visited and a warning displayed."
:type '(choice (const :tag "Ask for confirmation" ask)
(const :tag "Visit link and warn" nil)
(const :tag "Follow link" t))
:group 'vc)