Repository navigation
fix(BREAKING): don't let associations or remote negated excludes override the gitignore - #1393
Merged
Merged
Conversation
…itignore - the includes derived from the plugins' associations no longer make literal paths (ex. `.env`) override the gitignore, since an association only says which plugin formats a file - negated excludes (ex. `!**/*.txt`) are removed from remote configuration because a path they match isn't checked against the gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explicitly specified paths override the gitignore, but two things could get gitignored files formatted without being explicitly specified:
includes, the includes are derived from the plugins' file matching and associations, and a literal association (ex..env) was then treated as an explicitly specified path. An association only says which plugin formats a file and may come from remote configuration, so the derived includes no longer override the gitignore. Explicitincludesand CLI paths still do.!**/*.txt) isn't checked against the gitignore, and remote configuration could specify them. Negated excludes are now removed from remote configuration, with a note on the first download, the same as itsincludes.Note: For the release, this will require a checksum to change.