Skip to content

The ParsePatch function doesn't parse rename changes #640

@juansesierra

Description

@juansesierra

if you try to parse something like:

diff --git a/README.md b/README-2.md
similarity index 100%
rename from README.md
rename to README-2.md

the function parsePatch doesn't return an object with the expected value:

{
    oldFileName: "README.md"
    newFileName: "README-2.md"
    hunks: []
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions