Skip to content

diff breaks for patches #196

Closed
Closed
@gudmundur

Description

@gudmundur

If a commit contains a .patch, the parsing logic for https://github.com/schacon/ruby-git/blob/master/lib/git/diff.rb#L132 fails. It'll start reporting, for example: type: '-deleted'. The patch in a diff will be printed out as -deleted file mode 100644.

To reproduce, try committing https://github.com/isaacs/readable-stream/blob/master/float.patch and do repo.diff(prev_commit, head_commit)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions