From: Tassilo Horn <tsdh@gnu.org>
To: jonetsu <jonetsu@teksavvy.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Symbolic link to Git-controlled file
Date: Thu, 19 May 2022 15:29:55 +0200 [thread overview]
Message-ID: <87h75lvea1.fsf@gnu.org> (raw)
In-Reply-To: <20220519083428.5e5b26ec@mistral>
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
next prev parent reply other threads:[~2022-05-19 13:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-19 12:34 Symbolic link to Git-controlled file jonetsu
2022-05-19 13:29 ` Tassilo Horn [this message]
2022-05-19 13:35 ` jonetsu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h75lvea1.fsf@gnu.org \
--to=tsdh@gnu.org \
--cc=help-gnu-emacs@gnu.org \
--cc=jonetsu@teksavvy.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.