Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/go-git/go-git
/ Sum
Method
Sum
plumbing/hash.go:57–60 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
55
}
56
57
func
(h Hasher) Sum() (hash Hash) {
58
copy(hash[:], h.Hash.Sum(nil))
59
return
60
}
61
62
// HashesSort sorts a slice of Hashes in increasing order.
63
func
HashesSort(a []Hash) {
Callers
15
doCalculateHashForRegular
Method · 0.95
doCalculateHashForSymlink
Method · 0.95
TestRacyGit
Method · 0.95
TestZeroIndexModTime
Method · 0.95
TestNewHasher
Method · 0.95
ComputeHash
Function · 0.95
indexObjects
Method · 0.95
patchDeltaWriter
Function · 0.95
Hash
Method · 0.80
calculateHash
Method · 0.80
TestSha1Collision
Function · 0.80
readExtensions
Method · 0.80
Implementers
15
file
utils/merkletrie/internal/fsnoder/file
dir
utils/merkletrie/internal/fsnoder/dir.
node
utils/merkletrie/index/node.go
noderMock
utils/merkletrie/noder/noder_test.go
node
utils/merkletrie/filesystem/node.go
EncodedObject
storage/filesystem/dotgit/reader.go
Reference
plumbing/reference.go
MemoryObject
plumbing/memory.go
dummyObject
plumbing/cache/object_test.go
changeEntryWrapper
plumbing/object/patch.go
treeNoder
plumbing/object/treenoder.go
SortReadObject
plumbing/object/tree_test.go
Calls
no outgoing calls
Tested by
12
TestRacyGit
Method · 0.76
TestZeroIndexModTime
Method · 0.76
TestNewHasher
Method · 0.76
TestSha1Collision
Function · 0.64
TestDecodeInvalidHash
Method · 0.64
TestDecodeV4StripLength
Function · 0.64
TestDecodeNameLength0xFFFPatchedFlags
Function · 0.64
TestParserRejectsOverflowingObjectHeader
Function · 0.64
FuzzParser
Function · 0.64
buildTestPack
Function · 0.64
buildMinimalPack
Function · 0.64
TestMemoryIndexOffset64OutOfRange
Function · 0.64