Skip to content

Hide deleted file contents in diff #18811

@jpraet

Description

@jpraet

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/uiChange the appearance of the Gitea UItype/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions