From c8f22490eea530230b288888a70c08cfc7c6abe1 Mon Sep 17 00:00:00 2001 From: Filipe Brandenburger Date: Fri, 15 Feb 2019 11:01:20 -0800 Subject: [PATCH] editors: Prevent ctags from following symlinks Some tests will create a subtree of /sys under build/test/sys and depending on the local system that tree might end up having an infinite chain of symlinks. For example: $ ls build/test/sys/devices/pnp0/00:00/subsystem/devices/00:00/subsystem/devices/00:00/subsystem/devices/00:00/subsystem/devices/00:00/subsystem/devices/00:00/subsystem/ devices drivers drivers_autoprobe Exuberant ctags will by default follow symlinks, so configure it not to do so through a local .ctags file setting --links=no. Tested that `ctags -R` doesn't get stuck with the dotfile present. --- .ctags | 1 + 1 file changed, 1 insertion(+) create mode 100644 .ctags diff --git a/.ctags b/.ctags new file mode 100644 index 0000000000..a75e12e86e --- /dev/null +++ b/.ctags @@ -0,0 +1 @@ +--links=no