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.
This commit is contained in:
Ade Attwood 2024-01-15 21:21:44 +00:00
parent e69668b926
commit 94dd70fd5a

View file

@ -20,6 +20,7 @@ pub fn find_files(options: Options) -> Vec<String> {
// 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);