MCPcopy Index your code
hub / github.com/git-lfs/git-lfs / ObjectReferencePaths

Method ObjectReferencePaths

fs/fs.go:143–153  ·  view source on GitHub ↗
(oid string)

Source from the content-addressed store, hash-verified

141}
142
143func (f *Filesystem) ObjectReferencePaths(oid string) []string {
144 if len(f.ReferenceDirs) == 0 {
145 return nil
146 }
147
148 var paths []string
149 for _, ref := range f.ReferenceDirs {
150 paths = append(paths, filepath.Join(ref, oid[0:2], oid[2:4], oid))
151 }
152 return paths
153}
154
155func (f *Filesystem) LFSObjectDir() string {
156 f.mu.Lock()

Callers 1

LinkOrCopyFromReferenceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected