From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Symbolic link to Git-controlled file Date: Thu, 19 May 2022 15:29:55 +0200 Message-ID: <87h75lvea1.fsf@gnu.org> References: <20220519083428.5e5b26ec@mistral> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8701"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.21; emacs 29.0.50 Cc: help-gnu-emacs@gnu.org To: jonetsu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 19 15:33:16 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrgHE-00021g-Ai for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 May 2022 15:33:16 +0200 Original-Received: from localhost ([::1]:60002 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrgHD-0002E4-76 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 May 2022 09:33:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrgGg-0002Dh-32 for help-gnu-emacs@gnu.org; Thu, 19 May 2022 09:32:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56796) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrgGf-00069S-In; Thu, 19 May 2022 09:32:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=X8tNFqczFMKguBvyBFFA+r4jQTnYrzVRfcJLnJZsTd4=; b=OQaDjJW01m8p88 9Q+xEXEPMLB92x1EX5X0eVo0vVl8nPfcKL6LRyqq8ldwjr0AHhguAc09Dbhm+BNlb3+6qPiUDnKps XRobk6uPddPpgwF6J/rnJZjF7iz9mZQbpbAEp33WRSek5eU7ZWAnrkQf6DBI48lsF+ptT9xlT3m9I h8UuUGZl+K3kiFCOv8M4gr6Q6ChTzLXOGkiySDWfsrb7o1WIJ4JumzLn/VCPW4h2M94Rp0HVboOE0 +SaoiwXsExx/NCK7ZGQJiZ8XIJdSLTWlS7dNICmbA3UfutE1EUb4Ii4gk+uWD2XackXeBA8w3W/K9 SGqi1QzAmw/50epqPNqw==; Original-Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:51131) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrgGf-0005WC-By; Thu, 19 May 2022 09:32:41 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id 059A727C0060; Thu, 19 May 2022 09:32:41 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 19 May 2022 09:32:41 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedriedugdeigecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvvefuffgjkfggtgfgsehtqh ertddtreejnecuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdr ohhrgheqnecuggftrfgrthhtvghrnhepgfettdduiedvhfffhfefhfevhfeuvdehjeejfe elffehkeffuedthffgjeeihfegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlih hthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgr shhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 19 May 2022 09:32:40 -0400 (EDT) In-reply-to: <20220519083428.5e5b26ec@mistral> X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:137311 Archived-At: jonetsu 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 =E2=80=98vc-hooks.el=E2=80=99. Its value is =E2=80=98ask=E2=80=99 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 =E2=80=98ask=E2=80=99, 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