Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/libgit2/git2go
/ IsZero
Method
IsZero
git.go:256–258 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
254
}
255
256
func
(oid *Oid) IsZero() bool {
257
return
*oid == Oid{}
258
}
259
260
func
(oid *Oid) NCmp(oid2 *Oid, n uint) int {
261
return
bytes.Compare(oid[:n], oid2[:n])
Callers
1
TestOidZero
Function · 0.95
Calls
no outgoing calls
Tested by
1
TestOidZero
Function · 0.76