Cmp compares v to ref2. It returns 0 on equality, otherwise a stable sorting.
(ref2 *Reference)
| 308 | // Cmp compares v to ref2. It returns 0 on equality, otherwise a |
| 309 | // stable sorting. |
| 310 | func (v *Reference) Cmp(ref2 *Reference) int { |
| 311 | ret := int(C.git_reference_cmp(v.ptr, ref2.ptr)) |
| 312 | runtime.KeepAlive(v) |
| 313 | runtime.KeepAlive(ref2) |
| 314 | return ret |
| 315 | } |
| 316 | |
| 317 | // Shorthand returns a "human-readable" short reference name. |
| 318 | func (v *Reference) Shorthand() string { |
nothing calls this directly
no outgoing calls
no test coverage detected