* Symbolic link to Git-controlled file
@ 2022-05-19 12:34 jonetsu
2022-05-19 13:29 ` Tassilo Horn
0 siblings, 1 reply; 3+ messages in thread
From: jonetsu @ 2022-05-19 12:34 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
Out of curiosity, why is emacs asking before using a symlink that
represents a file that's under git control ? Everything works fine,
just curious.
Cheers.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Symbolic link to Git-controlled file
2022-05-19 12:34 Symbolic link to Git-controlled file jonetsu
@ 2022-05-19 13:29 ` Tassilo Horn
2022-05-19 13:35 ` jonetsu
0 siblings, 1 reply; 3+ messages in thread
From: Tassilo Horn @ 2022-05-19 13:29 UTC (permalink / raw)
To: jonetsu; +Cc: help-gnu-emacs
jonetsu <jonetsu@teksavvy.com> writes:
Hi!
> Out of curiosity, why is emacs asking before using a symlink that
> represents a file that's under git control ? Everything works fine,
> just curious.
Let's have a look what the docs say (C-h v vc-follow-symlinks RET):
--8<---------------cut here---------------start------------->8---
vc-follow-symlinks is a variable defined in ‘vc-hooks.el’.
Its value is ‘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.
--8<---------------cut here---------------end--------------->8---
How did I find that documentation? Using M-x apropos-variable RET
symlink RET.
HTH,
Tassilo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Symbolic link to Git-controlled file
2022-05-19 13:29 ` Tassilo Horn
@ 2022-05-19 13:35 ` jonetsu
0 siblings, 0 replies; 3+ messages in thread
From: jonetsu @ 2022-05-19 13:35 UTC (permalink / raw)
Cc: help-gnu-emacs
On Thu, 19 May 2022 15:29:55 +0200
Tassilo Horn <tsdh@gnu.org> wrote:
> How did I find that documentation? Using M-x apropos-variable RET
> symlink RET.
Thanks. And thanks for the reminder about the available help !
Cheers.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-19 13:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-19 12:34 Symbolic link to Git-controlled file jonetsu
2022-05-19 13:29 ` Tassilo Horn
2022-05-19 13:35 ` jonetsu
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.