Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
collapse large diffs && collapse/expand any diff within multi file patch view #1913
Description of the Change
This pull request adds code to detect large diffs, and automatically collapse them. It also adds the ability for users to collapse and expand any diff within a multi file patch view. There's a lot of shared logic between both so it made sense to tackle them at the same time.
The GitHub package now supports collapsing and expanding any files within multi file diff views (such as commit preview and the pull request files view), and also automatically collapses large files.
User Experience Research (Optional)
The UI is simple enough for this that I would argue it does not warrant UXR.
@@ Coverage Diff @@ ## master #1913 +/- ## ========================================== + Coverage 92.12% 92.57% +0.45% ========================================== Files 188 189 +1 Lines 10809 11237 +428 Branches 1582 1633 +51 ========================================== + Hits 9958 10403 +445 + Misses 851 834 -17