// Cmp compares both references, retursn 0 on equality, otherwise a // stable sorting. func (v *Reference) Cmp(ref2 *Reference) int { return int(C.git_reference_cmp(v.ptr, ref2.ptr)) }
func (ref *Reference) Compare(other *Reference) int { return int(C.git_reference_cmp(ref.git_reference, other.git_reference)) }