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

.ignore doesn't understand leading / on directory name properly (for .gitignore) #340

Closed
adobeDan opened this issue Mar 3, 2017 · 2 comments

Comments

@adobeDan
Copy link

adobeDan commented Mar 3, 2017

My .gitignore file has this line:

/build/

which should only match a top-level build directory, and my project has this directory at the root level:

misc/build/

Using the .ignore plugin, I get this message:

 Ignored files found that are tracked: .ignore plugin found some files that are tracked with Git which are also listed in .gitignore file

about all the files in misc/build/ and its subdirectories. But git check-ignore and git status --ignored correctly show all the files in in misc/build as not ignored. So apparently the .ignore plugin has its own logic for what files are ignored rather than using git's. Can it just use git's?

(By the way, I'm running .ignore 1.7.6 of 2017 Feb 23 in the latest PyCharm: PY-163.10154.50, JRE 1.8.0_112-release-408-b6x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.12.3 unknown, screens 2560x1440, 2560x1440.)

@adobeDan adobeDan changed the title .gitignore doesn't understand leading / on directory name properly .ignore doesn't understand leading / on directory name properly (for .git) Mar 3, 2017
@adobeDan adobeDan changed the title .ignore doesn't understand leading / on directory name properly (for .git) .ignore doesn't understand leading / on directory name properly (for .gitignore) Mar 3, 2017
@hsz
Copy link
Member

hsz commented Jun 5, 2017

@adobeDan Thank you for this report. This issue was resolved mostly by Migration to the native IDE indexing #367
It will be released with v2.0.0 as soon as other issues will be resolved.

@hsz hsz added this to the v2.0 milestone Jun 5, 2017
@adobeDan
Copy link
Author

adobeDan commented Jun 6, 2017

Great, thanks for the update! I look forward to the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants