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

Fix lack of implicit anchoring of patterns to directory separators #58

Merged

Commits on Oct 4, 2023

  1. Configuration menu
    Copy the full SHA
    4a64f0d View commit details
    Browse the repository at this point in the history
  2. Fix lack of implicit anchoring of patterns to directory separators

    A pattern without "*" - like "o.py" - carries an implicit assumption
    (not clearly documented in https://git-scm.com/docs/gitignore) that it
    should match a complete directory entry, and not freely match within
    an entry's name, i.e. it should match "o.py", but not "foo.py" or
    "o.pyc".
    
    To accomplish this, ensure that the pattern only matches at the start
    of the path, or directly following a directory separator.
    jherland committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    af1eef9 View commit details
    Browse the repository at this point in the history