Skip to content

Renamed files ignored #272

@cyclotron3k

Description

@cyclotron3k

I renamed a file, but didn't change the contents of the file. I would expect the parsed diff to provide information on the details of the rename, but instead it returns nothing. Is this expected behaviour?

my_diff = <<-DIFF
diff --git a/goonfile b/Gemfile
similarity index 100%
rename from goonfile
rename to Gemfile
DIFF

parsed = GitDiffParser.parse(my_diff)
# => []

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions