packsaddle / ruby-git_diff_parser

Parse `git diff` into patches and lines.
http://packsaddle.org
MIT License
33 stars 14 forks source link

Renamed files ignored #272

Open cyclotron3k opened 5 years ago

cyclotron3k commented 5 years ago

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