Feature request: Expand diff for more context #2485

Closed
opened 2025-11-02 04:38:07 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @BhaaLseN on GitHub (Nov 3, 2018).

GitHub allows a diff to be expanded, in case more context than the configured context lines is needed for a review. Clicking the symbol above/below the lines numbers here:
Expand Context
expands the diff in the respective direction to show more context:
More context

Update: GitHub now supports expanding both ways for files that have more than one hunk of change.
Expand goes both ways

Originally created by @BhaaLseN on GitHub (Nov 3, 2018). GitHub allows a diff to be expanded, in case more context than the configured context lines is needed for a review. Clicking the symbol above/below the lines numbers here: ![Expand Context](https://user-images.githubusercontent.com/826052/47952136-20d31800-df6b-11e8-84fd-5a9c665d5a9f.png) expands the diff in the respective direction to show more context: ![More context](https://user-images.githubusercontent.com/826052/47952138-2cbeda00-df6b-11e8-963c-05b412dc0ecd.png) Update: GitHub now supports expanding _both_ ways for files that have more than one hunk of change. ![Expand goes both ways](https://user-images.githubusercontent.com/826052/54771023-bd3d4480-4c04-11e9-828f-b4aafb0581bc.png)
GiteaMirror added the issue/confirmedtype/feature labels 2025-11-02 04:38:07 -06:00
Author
Owner

@stale[bot] commented on GitHub (Jan 4, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 4, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@shaba commented on GitHub (Mar 21, 2019):

+1

@shaba commented on GitHub (Mar 21, 2019): +1
Author
Owner

@starhel commented on GitHub (Sep 17, 2019):

+1 This is probably one of the most important features allowing fast and pleasant code review.

@starhel commented on GitHub (Sep 17, 2019): +1 This is probably one of the most important features allowing fast and pleasant code review.
Author
Owner

@Maximusya commented on GitHub (Oct 22, 2019):

Yes, please

@Maximusya commented on GitHub (Oct 22, 2019): Yes, please
Author
Owner

@petrdunaj commented on GitHub (Nov 28, 2019):

please +1

@petrdunaj commented on GitHub (Nov 28, 2019): please +1
Author
Owner

@guillep2k commented on GitHub (Nov 28, 2019):

This has been implemented in #8924

@guillep2k commented on GitHub (Nov 28, 2019): This has been implemented in #8924
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2485