MCPcopy Create free account
hub / github.com/go-git/go-git / Hash

Method Hash

plumbing/object/patch.go:153–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151}
152
153func (f *changeEntryWrapper) Hash() plumbing.Hash {
154 if !f.ce.TreeEntry.Mode.IsFile() {
155 return plumbing.ZeroHash
156 }
157
158 return f.ce.TreeEntry.Hash
159}
160
161func (f *changeEntryWrapper) Mode() filemode.FileMode {
162 return f.ce.TreeEntry.Mode

Callers

nothing calls this directly

Calls 1

IsFileMethod · 0.80

Tested by

no test coverage detected