MCPcopy
hub / github.com/github/git-sizer / BestPath

Method BestPath

sizes/path_resolver.go:184–191  ·  view source on GitHub ↗

Return some human-readable path for this object, even if it's just the OID.

()

Source from the content-addressed store, hash-verified

182// Return some human-readable path for this object, even if it's just
183// the OID.
184func (p *Path) BestPath() string {
185 path := p.Path()
186 if path != "" {
187 return path
188 }
189
190 return p.OID.String()
191}
192
193func (p *Path) String() string {
194 path := p.Path()

Callers 2

TreePrefixMethod · 0.80
PathMethod · 0.80

Calls 2

PathMethod · 0.95
StringMethod · 0.45

Tested by

no test coverage detected