Skip to content
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

Support a dedicated ignore file #127

Merged
merged 1 commit into from
Oct 12, 2019
Merged

Support a dedicated ignore file #127

merged 1 commit into from
Oct 12, 2019

Conversation

justanotherdot
Copy link
Contributor

ref. watchexec/cargo-watch#127

This adds support for a dedicated ignore file by the name of .ignore a
la fd, ripgrep, et. al.

This purely just mimics what Gitignore is doing except it doesn't
ignore .git directories. There might be more I need to tweak and the
interface might be too obtuse, but this is a first pass.

I've also added a --no-ignore flag which ignores both .gitignore and
the dedicated .ignore. It might make sense to add a specific flag that
ignores .ignore but respects .gitignore to support the old
behaviour, but I wasn't sure what to name it.

ref. watchexec/cargo-watch#127

This adds support for a dedicated ignore file by the name of `.ignore` a
la `fd`, `ripgrep`, et. al.

This purely just mimics what `Gitignore` is doing except it doesn't
ignore `.git` directories. There might be more I need to tweak and the
interface might be too obtuse, but this is a first pass.

I've also added a `--no-ignore` flag which ignores both `.gitignore` and
the dedicated `.ignore`. It might make sense to add a specific flag that
ignores `.ignore` but respects `.gitignore` to support the old
behaviour, but I wasn't sure what to name it.
@passcod
Copy link
Member

passcod commented Oct 5, 2019

This all looks great! Thank you

@passcod passcod merged commit e90bbcb into watchexec:master Oct 12, 2019
@passcod passcod added this to the 1.11.0 milestone Oct 28, 2019
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.

2 participants