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

Add exclusions #87

Closed
wants to merge 3 commits into from
Closed

Add exclusions #87

wants to merge 3 commits into from

Conversation

ocervell
Copy link

@ocervell ocervell commented Sep 2, 2021

This adds the ability to specify exclude paths by prefixing them with -.

Example:

when-changed -r /path/to/include -/path/to/exclude1 -/path/to/exclude2

Fix #16

@ocervell
Copy link
Author

ocervell commented Sep 2, 2021

@joh

Copy link
Owner

@joh joh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, sorry for taking so long to review this.

Thank you for this PR, code changes look good :)

Two requests:

  1. The command-line syntax with the - prefix creates a conflict with command-line arguments which also start with -. With the suggested syntax, it's not possible to exclude any file whose name matches any of the allowed command-line arguments, e.g., how would you exclude a file named vvv? I suggest adding a new argument -x for excluding one or more files.
  2. Your diff include quite a few unrelated formatting changes. Please don't include pure formatting changes of unrelated code.

Thank you!

@joh
Copy link
Owner

joh commented Apr 2, 2024

@ocervell Do you plan to continue work on this PR?

@ocervell
Copy link
Author

Probably not, it's been two years and I don't remember any of this :p

@joh joh closed this Apr 13, 2024
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.

Option to specify exclude patterns on the command line
2 participants