Skip to content

Does .mignore support ! statements? #1111

Closed Answered by slifty
slifty asked this question in Q&A
Discussion options

You must be logged in to vote

The answer is yes! the mignore pattern is driven by a python library: https://github.com/cpburnz/python-pathspec

This supports ! and my problem was that my own patterns were wrong. This works as I want it to:

**/.git/*
!**/.git/config

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by slifty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant