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

Method Path

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

Source from the content-addressed store, hash-verified

162 return f.ce.TreeEntry.Mode
163}
164func (f *changeEntryWrapper) Path() string {
165 if !f.ce.TreeEntry.Mode.IsFile() {
166 return ""
167 }
168
169 return f.ce.Name
170}
171
172func (f *changeEntryWrapper) Empty() bool {
173 return !f.ce.TreeEntry.Mode.IsFile()

Callers

nothing calls this directly

Calls 1

IsFileMethod · 0.80

Tested by

no test coverage detected