Skip to content

Conversation

@ydah
Copy link
Member

@ydah ydah commented Oct 5, 2025

For example, you might generate code, or create a file that combines multiple files into a single file. When you include these files in the repository, they might be included in the PR, which can be distracting. So, by default, the generated files will not appear in the diff.

refs: https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github

example

@ydah ydah force-pushed the linguist branch 2 times, most recently from 54538df to ea630c1 Compare October 5, 2025 03:40
.gitattributes Outdated
@@ -0,0 +1,2 @@
lib/lrama/parser.rb linguist-generated=true
sig/** linguist-generated=true
Copy link
Collaborator

@yui-knk yui-knk Oct 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sig/generated/**, because sig/ includes other folders ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is true. Thank you catching this! I fixed.

For example, you might generate code, or create a file that combines multiple files into a single file. When you include these files in the repository, they might be included in the PR, which can be distracting. So, by default, the generated files will not appear in the diff.

refs: https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github
@ydah ydah merged commit ec4238a into ruby:master Oct 7, 2025
22 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