]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
editors: Prevent ctags from following symlinks
authorFilipe Brandenburger <filbranden@google.com>
Fri, 15 Feb 2019 19:01:20 +0000 (11:01 -0800)
committerFilipe Brandenburger <filbranden@google.com>
Fri, 15 Feb 2019 19:01:20 +0000 (11:01 -0800)
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 [new file with mode: 0644]

diff --git a/.ctags b/.ctags
new file mode 100644 (file)
index 0000000..a75e12e
--- /dev/null
+++ b/.ctags
@@ -0,0 +1 @@
+--links=no