-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mark *_wrap.cxx as generated #134
Conversation
See https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github This will cause GitHub to collapse the changes in diffs by default. The changes can still be viewed by expanding the diff if desired. Should make it a bit easier to review PRs with changes to wrappers.
Makes sense! Quasi-related: do we have some sort of CI check that the wrap.cxx files match the .i's? |
No, but that would be a good idea. (Are you thinking about the xz incident?) |
There is the xz angle but I think it's also just a normal mistake one can make when checking generated content into source control. When I try to work on taglib-ruby it happens all the time I run swig against a version of taglib that is too new or something and it generates lots of wrapper code I don't want. It makes the code base hard to work with. |
I'll make an issue for this. |
Hm yeah, I see. I wish there was a button to load all diffs. You could chuck this into the Console to do that:
Why I still like them collapsed by default is: I usually want to review |
Thanks but I'm never going to remember that. :) Revert PR: #138 |
I think auto-collapsing really only makes sense if you can trust the generated data is correct (because CI checks it) and it's not something you want to review. Even though the wrap files are a huge verbose mess, I find it very important to review them because they reveal if Swig did the job you wanted it to do. |
See https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github
This will cause GitHub to collapse the changes in diffs by default. The changes can still be viewed by expanding the diff if desired. Should make it a bit easier to review PRs with changes to wrappers.