Skip to content

Error parsing diff Expected "rename from ", but got "copy from si" #14

Open
@dubcanada

Description

@dubcanada

Hey,

While I was viewing one of my diffs for a commit I got a

Expected "rename from ", but got "copy from si"

This error occurred because I copied pretty much my entire file from one from to another (but did a few changes, so git diff returned...

similarity index 97%
copy from style.css
copy to common.css

Similarity index can also be copy, it's not restricted to just renaming.

I'll see if I can get a pull request done. But how do you generally handle multiple options? I can't seem to find any other example. For now I just wrapped it in a try catch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions