MCPcopy
hub / github.com/go-git/go-git / blobHash

Function blobHash

blame.go:581–587  ·  view source on GitHub ↗
(path string, commit *object.Commit)

Source from the content-addressed store, hash-verified

579}
580
581func blobHash(path string, commit *object.Commit) (plumbing.Hash, error) {
582 file, err := commit.File(path)
583 if err != nil {
584 return plumbing.ZeroHash, err
585 }
586 return file.Hash, nil
587}

Callers 1

addBlamesMethod · 0.85

Calls 1

FileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…