MCPcopy Index your code
hub / github.com/ChimeraCoder/gitgo / NewObject

Function NewObject

object.go:80–86  ·  view source on GitHub ↗
(input SHA)

Source from the content-addressed store, hash-verified

78}
79
80func NewObject(input SHA) (obj GitObject, err error) {
81 str, err := CatFile(input)
82 if err != nil {
83 return
84 }
85 return parseObj(str)
86}
87
88func normalizePerms(perms string) string {
89 // TODO don't store permissions as a string

Callers 3

Test_ParseTreeFunction · 0.85
Test_ParseBlobFunction · 0.85
parseObjFunction · 0.85

Calls 2

CatFileFunction · 0.85
parseObjFunction · 0.85

Tested by 2

Test_ParseTreeFunction · 0.68
Test_ParseBlobFunction · 0.68