libgit2 / rugged

ruby bindings to libgit2
MIT License
2.25k stars 277 forks source link

Stop mutating commit diff options #961

Open toy opened 1 year ago

toy commented 1 year ago

Noticed that passing same options object to Commit#diff causes strange behaviour of reversing diff every second usage. This fixes the behaviour using same way as Repository#diff.