Esempio n. 1
0
// 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))
}
Esempio n. 2
0
func (ref *Reference) Compare(other *Reference) int {
	return int(C.git_reference_cmp(ref.git_reference, other.git_reference))
}