-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Don't ignore files that have been added to a job's watch list #308
Comments
This makes sense but it's not so obvious because you usually add whole dirs to What about this case ?
If you decide to ignore all I feel like we should rather leverage the |
I'm sure I haven't fully thought this through, but with my user hat on I guess I would expect:
If there's an easy way to do this for a single file then I'm all for it! |
What I propose is to support having negative patterns like this
in your job for the files that are in a |
I think I get it, so in my case I would have: watch = ["myfile.txt"] # Watch a non-standard file that's in .gitignore
ignore = ["!myfile.txt"] # Override .gitignore Is that right? |
Yes. This specific example looks tedious but it looks, to me, more compatible with the ignore chain logic. |
I'm doing some interactive testing on a temp file that I don't want to commit, using a file name that's in my global
.gitignore
.So, I have a job where I've added the file to the
watch
list, and then I'd like it ifGitIgnorer
would make an exception for the explicitly watched file, instead of telling the watcher that it's OK to ignore it.The text was updated successfully, but these errors were encountered: