Giter Site home page Giter Site logo

Comments (7)

mherrmann avatar mherrmann commented on August 23, 2024

I'll be happy to accept a PR that fixes this.

from gitignore_parser.

vlovich avatar vlovich commented on August 23, 2024

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.

mherrmann avatar mherrmann commented on August 23, 2024

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.

Azmisov avatar Azmisov commented on August 23, 2024

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.

thebaptiste avatar thebaptiste commented on August 23, 2024

Hello
Is this issue fixed in release 0.1.2 ?

from gitignore_parser.

jacky1234 avatar jacky1234 commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.