Skip to content

Custom --ignore-file-name #1713

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
baryluk opened this issue Apr 25, 2025 · 0 comments
Open

Custom --ignore-file-name #1713

baryluk opened this issue Apr 25, 2025 · 0 comments

Comments

@baryluk
Copy link

baryluk commented Apr 25, 2025

--ignore-file-name=FOO

When set, instead of inspecting .ignore and ~/.fdignore, only look for file FOO in each directory, and use that in the logic.

This is useful when having multiple traversal policies, or adapting existing ignore files from other project (i.e. backup softwares, borg - .EXCLUDE.BACKUP, kopia - .kopiaignore).

If file is present, but empty (modulo empty lines), ignore all, including subdirs. If present, but non-empty, interpret similar to ignore/gitignore/kopiaignore in general.

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

No branches or pull requests

1 participant