-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add support for loading all large diffs at once #825
Comments
Just curious: when do you need to check those large diffs? For me, those are usually auto-generated files that I can safely skip. What is your scenario? |
@sgabler a feature branch can sometimes have many files changed drastically |
this happens to me also for regular diffs, esp when the PR also contains a refactoring.
|
I think GitHub had something like this the first time they've stopped rendering large diffs, but they've removed it. It was putting too much load for them to render them. |
Thumbs up on this... in particular it's frustrating that I do a painstaking code review, and the biggest file in the patch gets collapsed like this so that the author doesn't even notice all my comments in there as they leaf through. I'd suggest that diffs with comments be opened/loaded by default! |
No default, GitHub hid them because large diffs are heavy on their servers. |
+1 for a button at the top to "load all diffs". An additional possible use case is having to search for all occurrences of a particular string/function/etc in the diff, and hiding the large diffs hides some/all of these occurrences. |
Anybody knows of any progress regarding this feature? |
@IssueHunt has funded $40.00 to this issue.
|
I used this snippet in my console to see how well it would perform.
The result... It performed sort of poorly with about ~100 backstop references in one PR loading their diff all at once, but it was certainly a lot faster than clicking all the diff buttons. 😄 |
Cool! Any way to embed this in a GreaseMonkey/TamperMonkey script? |
FWIW I have this issue on my team almost daily (games team) and I wrote some hacky JS to click all the buttons. Just press Ctrl+Shift+I in Chrome (Inspect) and run this in the console:
It'll take a bit, but it'll click all of them for ya. No more going crazy clicking buttons. |
Excellent, thanks a lot! Will that be activated by default? |
It's not a default but you can click on any "Load diff" while holding the |
@sindresorhus has rewarded $36.00 to @notlmn. See it on IssueHunt
|
based on jm991's answer, I made it into a one liner:
|
One more stuff: |
Try this if you have a large PR, it will schedule the clicks
|
It would be very nice to have a setting to enable this by default so the user don't have to press alt and click on one at all. |
@cecton Sorry, but we don't do per-feature settings (it's a recipe for scope creep) |
by default larges diffs are not shown. If a PR contains many large diffs, one has to go over them one by one and there is a risk to miss something in a code review.
It would be great to have a button at the top "load all diffs".
IssueHunt Summary
notlmn has been rewarded.
Backers (Total: $40.00)
Submitted pull Requests
toggle-all-things-with-alt
featureTips
IssueHunt has been backed by the following sponsors. Become a sponsor
The text was updated successfully, but these errors were encountered: