Skip to content

Comments

Exclude entire doc directory from distribution archive#287

Merged
ondrejmirtes merged 1 commit into2.3.xfrom
gitattributes-export-ignore
Feb 19, 2026
Merged

Exclude entire doc directory from distribution archive#287
ondrejmirtes merged 1 commit into2.3.xfrom
gitattributes-export-ignore

Conversation

@phpstan-bot
Copy link
Contributor

Summary

  • Changed doc/grammars export-ignore to doc export-ignore in .gitattributes since the doc directory only contains grammar files used for development and does not need to be included in the distributed archive.

The .gitattributes file already had comprehensive export-ignore rules for development files. This change simplifies the doc/grammars rule to exclude the entire doc directory, which only contains development-related grammar files (*.peg, *.abnf).

Files correctly kept in the distribution:

  • src/ (source code)
  • composer.json (package metadata)
  • LICENSE (license)
  • README.md (user documentation)
  • UPGRADING.md (upgrade guide)

🤖 Generated with Claude Code

Change `doc/grammars export-ignore` to `doc export-ignore` since the
doc directory only contains grammar files used for development and
does not need to be included in the distributed archive.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ondrejmirtes ondrejmirtes merged commit 9b259c7 into 2.3.x Feb 19, 2026
38 of 44 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.

2 participants