Hide deleted file contents in diff #8579

Open
opened 2025-11-02 08:11:37 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @jpraet on GitHub (Feb 18, 2022).

Feature Description

I think the contents of deleted files should not be displayed in a diff.

Either the file could be collapsed by default (like currently done for generated files), or it could be lazily loaded with a "Show File" button, like currently done for files that are too large. Not sure which of these options fits best.

Screenshots

On GitHub this is done as follows:

image

Originally created by @jpraet on GitHub (Feb 18, 2022). ### Feature Description I think the contents of deleted files should not be displayed in a diff. Either the file could be collapsed by default (like currently done for generated files), or it could be lazily loaded with a "Show File" button, like currently done for files that are too large. Not sure which of these options fits best. ### Screenshots On GitHub this is done as follows: ![image](https://user-images.githubusercontent.com/2212615/154737487-e8ab577b-5119-4867-b417-170d9db21ab4.png)
GiteaMirror added the type/proposaltopic/ui labels 2025-11-02 08:11:37 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8579