Skip to content

Changes panel: diff for renamed file renders as full addition instead of rename diff #56

Closed

Description

@Yash990-bit

Description

When selecting a renamed file in the Changes panel, the diff viewer renders the file as a brand new file with 100% additions (--- /dev/null, +++ b/<new_path>), instead of showing the rename and only the lines that actually changed.

Steps to reproduce

  1. In a git repo with existing commits, rename a file and optionally modify a line:
    git mv hello.txt world.txt
    echo "extra line" >> world.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions