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

ripgrep warns about a .gitignore pattern accepted by git #1082

Closed
hferreiro opened this issue Oct 11, 2018 · 3 comments
Closed

ripgrep warns about a .gitignore pattern accepted by git #1082

hferreiro opened this issue Oct 11, 2018 · 3 comments
Labels
duplicate An issue that is duplicative of another.

Comments

@hferreiro
Copy link

What version of ripgrep are you using?

0.8.1.

How did you install ripgrep?

Fedora repo package.

What operating system are you using ripgrep on?

Fedora 28.

Describe your question, feature request, or bug.

I'm getting the following warning:

.gitignore: line 7: error parsing glob '**.sw[po]': invalid use of **; must be one path component

By looking at the gitignore man page, I assume the correct way to write this would be **/*.sw[po], but git seems to accept both versions.

@okdana
Copy link
Contributor

okdana commented Oct 11, 2018

This one sure is popular

#1080
#945
#859
#507
#373

@BurntSushi
Copy link
Owner

Yup. There are a number of issues for this, so closing as a duplicate.

@BurntSushi BurntSushi added the duplicate An issue that is duplicative of another. label Oct 11, 2018
@BurntSushi
Copy link
Owner

FYI, if your don't want to see error messages from parsing ignore files, you can use --no-ignore-messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate An issue that is duplicative of another.
Projects
None yet
Development

No branches or pull requests

3 participants