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

Method Hash

plumbing/object/treenoder.go:53–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53func (t *treeNoder) Hash() []byte {
54 if t.mode == filemode.Deprecated {
55 return append(t.hash[:], filemode.Regular.Bytes()...)
56 }
57 return append(t.hash[:], t.mode.Bytes()...)
58}
59
60func (t *treeNoder) Name() string {
61 return t.name

Callers 2

TestIssue279Method · 0.95

Calls 1

BytesMethod · 0.45

Tested by 2

TestIssue279Method · 0.76