Skip to content

Support multiple gitignores #37

@davidmfoley

Description

@davidmfoley

When there are gitignores in both /project-root/.gitignore and /project-root/subfolder/.gitignore only the first .gitignore found, walking the tree up from the base (pwd) is used to determine excluded files.

This results in two bugs:

  • When running from /project-root/, only the higher-level .gitignore is parsed, so the files in /project-root/subfolder are not properly filtered
  • Conversely, when running from /project-root/subfolder, the higher-level ignores in /project-root are not read

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions