• Alex Kalderimis's avatar
    Allow shas that are nil to compare to nil shas · d0a04466
    Alex Kalderimis authored
    Previously, nil == nil was being treated as false. This is both clearly
    wrong and more seriously broke the equality contract of `DiffRefs`,
    since the same object would not compare equal to itself it any of its
    components was nil.
    
    Adds a test for commit.diff_refs equality, the motivating case.
    d0a04466
commit_spec.rb 21 KB