ruby-git_diff_parser
ruby-git_diff_parser copied to clipboard
Parse `git diff` into patches and lines.
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 @@ [](http://badge.fury.io/rb/saddler) [](https://travis-ci.org/packsaddle/ruby-saddler) +**checkstyle2anywhere** + ## Installation Add this...
diff include " \n", but some editor removes trailing space, then parser is confused.