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

Nested .gitignores #72

Open
kpwelsh opened this issue Jan 21, 2025 · 0 comments
Open

Nested .gitignores #72

kpwelsh opened this issue Jan 21, 2025 · 0 comments

Comments

@kpwelsh
Copy link

kpwelsh commented Jan 21, 2025

It would be great if this library had support for layering .gitignores to handle cases like the following:

package/
  .gitignore
  my_package/
    resources/
      .gitignore

I was working with a repo that has, a perhaps ill advised, gitignore like the following:

Root:

*.rst

Somewhere deep in the library:

!*

This was used to make a special folder of .rsts that would be included in the repo. I was naively ignoring on match any of the relevant .gitignores, but it seems like I would have to actually consider the exclusions / un-exclusions on the rule level and combine them there to handle something like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant