We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9103001 commit 1031096Copy full SHA for 1031096
1 file changed
src/scan.zig
@@ -107,8 +107,12 @@ pub fn findFiles(
107
const is_file = entry.kind == .file or
108
(entry.kind == .sym_link and isSymlinkToFile(dir, entry.path));
109
if (!is_file) continue;
110
- if (git_allow) |*set| {
111
- if (!set.contains(entry.path)) continue;
+ // Symlinks are always indexed even if gitignored — the user explicitly
+ // created them, so they want them available for search/navigation.
112
+ if (entry.kind != .sym_link) {
113
+ if (git_allow) |*set| {
114
+ if (!set.contains(entry.path)) continue;
115
+ }
116
}
117
var extractor = registry.find(entry.path);
118
if (extractor == null) {
0 commit comments