Skip to content

Commit 3c76ad7

Browse files
committed
minor symfony#52208 [Intl]  Hide generated files in GitHub diffs and statistics (GromNaN)
This PR was submitted for the 6.4 branch but it was merged into the 5.4 branch instead. Discussion ---------- [Intl]  Hide generated files in GitHub diffs and statistics | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT See [Customizing how changed files appear on GitHub](https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github). > To keep certain files from displaying in diffs by default, or counting toward the repository language, you can mark them with the linguist-generated attribute in a `.gitattributes` file. This makes diff easier to read. Generated files diff can still be displayed, but they are hidden by default in PR like symfony#52183 Example from an other project: <img width="795" alt="image" src="https://github.com/symfony/symfony/assets/400034/a2ebf6f9-0aa8-48da-b453-38c8a6d08cb2"> Commits ------- bfa9ee0 Hide generated files in GitHub diffs and statistics
2 parents c4558e7 + bfa9ee0 commit 3c76ad7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/src/Symfony/Component/Messenger/Bridge export-ignore
55
/src/Symfony/Component/Notifier/Bridge export-ignore
66
/src/Symfony/Component/Runtime export-ignore
7+
/src/Symfony/Component/Intl/Resources/data/*/* linguist-generated=true

0 commit comments

Comments
 (0)