Skip to content

📝 Clarify mu-plugins gitignore rule#801

Merged
retlehs merged 1 commit into
masterfrom
docs/clarify-mu-plugins-gitignore
Mar 8, 2026
Merged

📝 Clarify mu-plugins gitignore rule#801
retlehs merged 1 commit into
masterfrom
docs/clarify-mu-plugins-gitignore

Conversation

@retlehs
Copy link
Copy Markdown
Member

@retlehs retlehs commented Mar 8, 2026

Summary

  • Adds a clarifying comment to .gitignore explaining that the web/app/mu-plugins/*/ pattern intentionally only ignores Composer-installed mu-plugin directories, while allowing root-level single-file mu-plugins (like bedrock-autoloader.php) to be tracked by Git

Context

Addresses confusion raised in #755. The */ vs * distinction is subtle and has caused users to assume single-file mu-plugins being tracked is a bug, when it's actually by design. No behavior change; comment-only.

Test plan

  • git check-ignore -v web/app/mu-plugins/bedrock-disallow-indexing/ — ignored via .gitignore:5
  • git check-ignore -v web/app/mu-plugins/bedrock-autoloader.php — not ignored (exit 1)

🤖 Generated with Claude Code

Explains that the `*/` pattern intentionally only ignores
Composer-installed mu-plugin directories while allowing single-file
mu-plugins to be tracked. Addresses confusion raised in #755.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@retlehs retlehs merged commit 9cfd44d into master Mar 8, 2026
8 checks passed
@retlehs retlehs deleted the docs/clarify-mu-plugins-gitignore branch March 8, 2026 17:10
xelmido pushed a commit to xelmedia/bedrock-headless-zilch that referenced this pull request Apr 1, 2026
Explains that the `*/` pattern intentionally only ignores
Composer-installed mu-plugin directories while allowing single-file
mu-plugins to be tracked. Addresses confusion raised in roots#755.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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