MCPcopy Create free account
hub / github.com/libgit2/git2go / NCmp

Method NCmp

git.go:260–262  ·  view source on GitHub ↗
(oid2 *Oid, n uint)

Source from the content-addressed store, hash-verified

258}
259
260func (oid *Oid) NCmp(oid2 *Oid, n uint) int {
261 return bytes.Compare(oid[:n], oid2[:n])
262}
263
264func ShortenOids(ids []*Oid, minlen int) (int, error) {
265 shorten := C.git_oid_shorten_new(C.size_t(minlen))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected