-
Notifications
You must be signed in to change notification settings - Fork 284
Closed
Description
Rugged::Diff::Line#hunk or (#owner) seems to always returns nil. How to reproduce:
irb(main):001:0> require 'rugged'
=> true
irb(main):002:0> repo = Rugged::Repository.new('.')
=> #<Rugged::Repository:70098604661600 {path: "/Users/mindaugasmozuras/Projects/rugged/.git/"}>
irb(main):003:0> diff = repo.diff('HEAD', 'HEAD~1')
=> #<Rugged::Diff:0x007f8234db3400 @owner=Rugged::Tree>
irb(main):004:0> diff.each_line.map { |line| line.hunk.class }
=> [NilClass, NilClass, NilClass, NilClass]
Seems to be introduced with this commit. /cc @arthurschreiber
Metadata
Metadata
Assignees
Labels
No labels