在没有冗长对话框的情况下进入git-repo的链接 [英] Following a link into a git-repo without lengthy dialog
问题描述
在目录中,我具有指向git管理的目录的符号链接(全部在Linux下)。每当我想 e -dit这样的链接时,都会出现一个对话框问题:
In a directory I have symbolic links into a git-administered directory (all under Linux). Every time I want to e-dit such a link I get a dialog question:
指向Git控制的源文件的符号链接;跟随链接? (是或否)
我必须输入 y e s ⏎ 进入文件。有一种更简单的方法吗?
And I have to type y e s ⏎ to get to the file. Is there a somewhat simpler way?
理想情况下,类似于声明目录不需要对话框。
Ideally, something like declaring that a directory needs no dialog.
推荐答案
设置 vc-follow-symlinks
。您可能希望它为 nil
(打开链接),但请务必阅读文档,因为 t
(打开目标
Set vc-follow-symlinks
. You probably want it to be nil
(open link), but be sure to read the docs because t
(open target) is also sensible.
(setq vc-follow-symlinks nil)
如果不希望将其全局设置,可以将其设为dir局部变量。
You can make this a dir local variable if you don't want it set globally.
这篇关于在没有冗长对话框的情况下进入git-repo的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!