Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/libgit2/git2go
/ Cmp
Method
Cmp
git.go:243–245 ·
view source on GitHub ↗
(oid2 *Oid)
Source
from the content-addressed store, hash-verified
241
}
242
243
func
(oid *Oid) Cmp(oid2 *Oid) int {
244
return
bytes.Compare(oid[:], oid2[:])
245
}
246
247
func
(oid *Oid) Copy() *Oid {
248
ret := *oid
Callers
10
TestUtil
Function · 0.45
TestIndexReadTree
Function · 0.45
TestMergeBase
Function · 0.45
TestMergeBases
Function · 0.45
TestMergeBaseMany
Function · 0.45
TestMergeBasesMany
Function · 0.45
TestMergeBaseOctopus
Function · 0.45
TestOdbStream
Function · 0.45
TestOdbHash
Function · 0.45
TestClone
Function · 0.45
Calls
no outgoing calls
Tested by
10
TestUtil
Function · 0.36
TestIndexReadTree
Function · 0.36
TestMergeBase
Function · 0.36
TestMergeBases
Function · 0.36
TestMergeBaseMany
Function · 0.36
TestMergeBasesMany
Function · 0.36
TestMergeBaseOctopus
Function · 0.36
TestOdbStream
Function · 0.36
TestOdbHash
Function · 0.36
TestClone
Function · 0.36