Skip to content

Commit

Permalink
wtf
Browse files Browse the repository at this point in the history
  • Loading branch information
seren5240 committed Mar 13, 2024
1 parent 4996081 commit 8fd865e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/language/src/target_language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,11 +461,12 @@ pub fn expand_paths(
// }
file_walker.add_custom_ignore_filename(PathBuf::from_str(".gritignore")?);

let grit = OverrideBuilder::new(".").add("!**/.grit/**")?.build()?;
file_walker.overrides(grit);
let grit = OverrideBuilder::new(".");
for path in start_paths {
file_walker.overrides(OverrideBuilder::new(path).build()?);
grit.add(path)?;
}
grit.add("!**/.grit/**")?.build()?;
file_walker.overrides(grit);

let final_walker = file_walker
.standard_filters(true)
Expand Down

0 comments on commit 8fd865e

Please sign in to comment.