-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Add linguist-generated to gitattributes #13628
Conversation
This will keep generated weights.rs from displaying in diffs by default see https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github for more details
Then how do we review them? |
They still show up in the file list, but are by default collapsed, and they don't affect the PR diff numbers, (so people are not scared by a big number when they review your PR) That's the theory, can try to test this out with this PR to make sure that works as intended |
Less trust, more truth. Let's go! |
bot bench $ pallet dev pallet_balances |
@ggwpez https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2542934 was started for your command Comment |
noobs question, would that bot call actually create a diff, since this PR has no changes? |
Yes it should. And yes; modifying by hand is also possible, but I am lazy and then you would have to revert it 😛 |
@ggwpez Command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This part seems to be wrong :( Look at the diff stats of this PR. It includes the generated file. Other PRs which include this change also have scary diff stats: #13312 The description of the feature also never mentions that it will be ignored in PR diff stats. Only in the PRs repository's language statistics. So it does seem to be intentional. I wish there were a way to hide it from PR diff stats, though. |
yep saw that as well, this is not that useful after all... |
This will keep generated weights.rs from displaying in diffs by default
see https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github
for more details