From 94dd70fd5ab48428abe28c05ce577a5199f0a6e5 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Mon, 15 Jan 2024 21:21:44 +0000 Subject: [PATCH] feat: don't search in sapling source control directories This file should be treated as the .git dir and not show up in the candidates list for files. --- rust/finder.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/finder.rs b/rust/finder.rs index 2e577c6..f3baa97 100644 --- a/rust/finder.rs +++ b/rust/finder.rs @@ -20,6 +20,7 @@ pub fn find_files(options: Options) -> Vec { // is no way to handel errors in the rust library let mut override_builder = OverrideBuilder::new(""); override_builder.add("!.git").unwrap(); + override_builder.add("!.sl").unwrap(); let overrides = override_builder.build().unwrap(); builder.overrides(overrides);