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

libglob: support "."/".." in file globs and fix patterns with trailing "/" #13383

Merged
merged 2 commits into from
Apr 9, 2014

Commits on Apr 7, 2014

  1. libglob: allow "." and ".." to be matched

    ... also don't read the whole directory if the glob for that path
    component doesn't contain any metacharacters.
    
    Patterns like `../*.jpg` will work now, and `.*` will match both `.` and
    `..` to be consistent with shell expansion.
    
    As before: Just `*` still won't match `.` and `..`, while it will still
    match dotfiles like `.git` by default.
    ben0x539 committed Apr 7, 2014
    Configuration menu
    Copy the full SHA
    4051bd9 View commit details
    Browse the repository at this point in the history
  2. libglob: only return dirs for globs ending in /

    `foo.txt/` should not return `foo.txt` if `foo.txt` is in fact a text
    file and not a directory.
    ben0x539 committed Apr 7, 2014
    5 Configuration menu
    Copy the full SHA
    1700f35 View commit details
    Browse the repository at this point in the history