-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Whitelist certain dot files? #90
Comments
Here with
|
Are you using current master? If not, you need to use With that said, actually, you can't whitelist hidden files. The only way a hidden file gets searched is if This does seem like a shortcoming. |
I think what this means is that we should do the hidden check last, which will enable CLI globs, ignores or file types the opportunity to whitelist them. |
Yes, I am, and thus the reference to
Thanks for recognizing this as a bug and fixing it this quick! |
We use GitLab CI and its configuration file is named $ cat <<EOF > .hidden-file
> docker pull python:3.4-wheezy
> EOF
$ ll .hidden-file
-rw-r--r-- 1 ye staff 30 Nov 4 16:24 .hidden-file
$ cat .hidden-file
docker pull python:3.4-wheezy
$ rg python:3.4-wheezy
$
$ rg --no-ignore python-3.4:wheezy
$
$ cat .hidden-file | grep 'python-3.4:wheezy'
docker pull python-3.4:wheezy
$ cat .hidden-file | rg 'python-3.4:wheezy'
1:docker pull python-3.4:wheezy |
@ye As I see it, today, you have two options available to you. First, pass the I think I prefer you create a new issue, since the specific bug in this ticket has been fixed. In this new issue, could you explain why neither of the aforementioned options work for you? |
@BurntSushi thank you. Some project owners preferred less issues being opened and always searching for existing issues and tack on rather than open a new ticket. I wasn't sure, so I commented here. |
@ye if you'd be willing, i would definitely appreciate a big report on how .ignore didn't work for you. |
@BurntSushi Ok, will do. |
Hello,
I am trying to whitelist certain dot files. But it does not seem to work.
Is the syntax in
.ignore
file incorrect?Thanks.
The text was updated successfully, but these errors were encountered: