Skip to content

Commit

Permalink
revert definition of == for GitHash
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Jan 22, 2017
1 parent 96f1bff commit c62ef8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/libgit2/oid.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ end
Base.cmp(id1::GitHash, id2::GitShortHash) = cmp(GitShortHash(id1, OID_HEXSZ), id2)
Base.cmp(id1::GitShortHash, id2::GitHash) = cmp(id1, GitShortHash(id2, OID_HEXSZ))

==(id1::AbstractGitHash, id2::AbstractGitHash) = cmp(id1, id2) == 0
==(id1::GitHash, id2::GitHash) = cmp(id1, id2) == 0
Base.isless(id1::AbstractGitHash, id2::AbstractGitHash) = cmp(id1, id2) < 0

function iszero(id::GitHash)
Expand Down

0 comments on commit c62ef8f

Please sign in to comment.