MCPcopy Create free account
hub / github.com/libgit2/git2go / String

Method String

object.go:35–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35func (t ObjectType) String() string {
36 switch t {
37 case ObjectAny:
38 return "Any"
39 case ObjectInvalid:
40 return "Invalid"
41 case ObjectCommit:
42 return "Commit"
43 case ObjectTree:
44 return "Tree"
45 case ObjectBlob:
46 return "Blob"
47 case ObjectTag:
48 return "Tag"
49 }
50 // Never reached
51 return ""
52}
53
54func (o *Object) Id() *Oid {
55 ret := newOidFromC(C.git_object_id(o.ptr))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected