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

Parse `git diff` into patches and lines.

Results 10 ruby-git_diff_parser issues
Sort by recently updated
recently updated
newest added

Non removed lines should be counted towards the line number exclusively, test was simply incorrect previously. Manually checked against the diff to confirm this.

we have a lot of unnecessary files. https://my.diffend.io/gems/git_diff_parser/3.2.0/4.0.0 ``` irb(main):003:0> `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } => [".conventional-changelog.context.js", ".github/workflows/ci.yaml", ".gitignore", ".rspec", ".rubocop.yml", "CODE_OF_CONDUCT.md", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup",...

`Patches.parse` doesn't seem to be initializing `secure_hash` for any of the patches. Is this intentional?

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...

Patches for deleted files are ignored. This PR fixes it.

Hi, wondering why removed lines are not being tracked :) @sanemat

include deleted files in patch list

:trollface: `$ git diff` ``` diff --git a/README.md b/README.md index 60cc5e9..54f50e9 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ [![Gem Version](http://img.shields.io/gem/v/saddler.svg?style=flat)](http://badge.fury.io/rb/saddler) [![Build Status](http://img.shields.io/travis/packsaddle/ruby-saddler/master.svg?style=flat)](https://travis-ci.org/packsaddle/ruby-saddler) +**checkstyle2anywhere** + ## Installation Add this...

diff include " \n", but some editor removes trailing space, then parser is confused.