Skip to content

Respect excludes for followed broken symlinks#2007

Open
Sean-Kenneth-Doherty wants to merge 1 commit into
sharkdp:masterfrom
Sean-Kenneth-Doherty:codex/exclude-broken-symlink
Open

Respect excludes for followed broken symlinks#2007
Sean-Kenneth-Doherty wants to merge 1 commit into
sharkdp:masterfrom
Sean-Kenneth-Doherty:codex/exclude-broken-symlink

Conversation

@Sean-Kenneth-Doherty
Copy link
Copy Markdown
Contributor

Summary

  • keep the override matcher available for fd-created broken symlink entries
  • skip followed broken symlinks when they match --exclude before applying fd's remaining filters
  • add a regression for --follow --exclude broken_symlink

Fixes #746.

Tests

  • cargo fmt --check
  • cargo clippy --all-targets --all-features -- -Dwarnings
  • cargo test --test tests
  • cargo test --locked
  • manual: fd --follow --exclude broken_link . <tmp> now prints only the non-excluded file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Broken links don't respect --exclude when using --follow

1 participant