MCPcopy
hub / github.com/git-lfs/git-lfs / NewLfsContentHash

Function NewLfsContentHash

tools/iotools.go:43–45  ·  view source on GitHub ↗

Get a new Hash instance of the type used to hash LFS content

()

Source from the content-addressed store, hash-verified

41
42// Get a new Hash instance of the type used to hash LFS content
43func NewLfsContentHash() hash.Hash {
44 return sha256.New()
45}
46
47// HashingReader wraps a reader and calculates the hash of the data as it is read
48type HashingReader struct {

Callers 3

DoTransferMethod · 0.92
VerifyFileHashFunction · 0.85
NewHashingReaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected