| name | updating-gitattributes-file |
| description | Update .gitattributes files for projects using lean-package-validator; use when adding missing export-ignore entries or refreshing existing content. |
| version | 1.0.0 |
| tags | ["git","gitattributes","lean-package-validator","php"] |
Update .gitattributes with lean-package-validator
Use lean-package-validator to refresh an existing .gitattributes file:
- Run
./vendor/bin/lean-package-validator update to replace missing export-ignore entries.
- Add
--align-export-ignores if you want aligned columns.
- Add
--omit-header to avoid modifying the header comment.
- If you need a preview first, run
./vendor/bin/lean-package-validator validate --diff and then re-run with the update command.
Keep any non-export-ignore rules intact; lean-package-validator appends export-ignores below them.