Skip to content

fix(BREAKING): don't let associations or remote negated excludes override the gitignore - #1393

Merged
dsherret merged 1 commit into
mainfrom
fix/remote-config-gitignore
Oct 23, 2026
Merged

dsherret merged 1 commit into
mainfrom
fix/remote-config-gitignore

Conversation

@dsherret

@dsherret dsherret commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Explicitly specified paths override the gitignore, but two things could get gitignored files formatted without being explicitly specified:

  • When there are no 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. Explicit includes and CLI paths still do.
  • A path matched by a negated exclude (ex. !**/*.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 its includes.

Note: For the release, this will require a checksum to change.

…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
@dsherret dsherret changed the title fix: don't let associations or remote negated excludes override the gitignore fix(BREAKING): don't let associations or remote negated excludes override the gitignore Oct 23, 2026
@dsherret
dsherret added this pull request to stack #1399 October 23, 2026 14:29
@dsherret
dsherret merged commit 1ff5110 into main Oct 23, 2026
7 checks passed
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

Successfully merging this pull request may close these issues.

1 participant