Comments (7)
I'll be happy to accept a PR that fixes this.
from gitignore_parser.
Posted the PR although I don't know the spec well enough. snark/ignorance#1 has a different proposal for anchoring. Can you let me know which solution is correct?
from gitignore_parser.
I'm afraid I don't know which solution is correct. I also don't have time to look into it. You mention in your PR that you are not entirely sure it is the right behavior. I would love to have a more confident opinion, by either you or others, that your proposed change really conforms to the spec.
from gitignore_parser.
I believe a ran into this same issue:
# .gitignore
build/
will match both build/
directory and sdist_build.py
.
For reference, an alternative project that works for python <3.6 is https://pypi.org/project/pathspec/.
from gitignore_parser.
Hello
Is this issue fixed in release 0.1.2 ?
from gitignore_parser.
I have a issue like this:
A project managed by git. And the gitignore config like this: '*/build'.
And the file abs path like: ./B/build/a.java is not ignored!
from gitignore_parser.
Related Issues (16)
- problem with '*' in .gitignore HOT 6
- Negation rules don't work HOT 2
- Bug with matching paths within .gitignore directory HOT 4
- Use spaces consistently HOT 6
- Codacy integration HOT 1
- Clear release notes HOT 1
- support parsing all .gitignore files in specified directory tree HOT 11
- Not working without base_path given HOT 11
- ValueError raised on symlinks that point to a different path HOT 2
- DeprecationWarning: Flags not at the start of the expression HOT 1
- Single Wildcard Error HOT 1
- Unsafe string slicing in IgnoreRule.match method. It fails with Path type. HOT 6
- Allow string input rather than a path HOT 4
- Needs tests HOT 3
- foo/**/Bar/ not working HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitignore_parser.