ruby-git_diff_parser icon indicating copy to clipboard operation
ruby-git_diff_parser copied to clipboard

Renamed files ignored

Open cyclotron3k opened this issue 6 years ago • 0 comments

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)
# => []

cyclotron3k avatar Sep 06 '19 02:09 cyclotron3k