Skip to content

Commit

Permalink
sigh
Browse files Browse the repository at this point in the history
  • Loading branch information
seren5240 committed Mar 13, 2024
1 parent 3b60bfb commit 6b4b85a
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 @@ -418,9 +418,10 @@ fn is_file_ignored(path: &Path) -> Result<bool> {
use ignore::{gitignore::GitignoreBuilder, Match};
use path_absolutize::Absolutize;

let mut ignore_cache = FindIgnoreCache::new();
let git_ignores = find_ignore_files(path, ".gitignore", &mut ignore_cache)?;
let grit_ignores = find_ignore_files(path, ".gritignore", &mut ignore_cache)?;
let mut git_ignore_cache = FindIgnoreCache::new();
let git_ignores = find_ignore_files(path, ".gitignore", &mut git_ignore_cache)?;
let mut grit_ignore_cache = FindIgnoreCache::new();
let grit_ignores = find_ignore_files(path, ".gritignore", &mut grit_ignore_cache)?;
for ignore_file in git_ignores.iter().chain(grit_ignores.iter()) {
let ignore_dir = match ignore_file.parent() {
Some(dir) => dir,
Expand Down

0 comments on commit 6b4b85a

Please sign in to comment.