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

Function LsFilesLFS

git/git.go:327–339  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

325}
326
327func LsFilesLFS() (*subprocess.BufferedCmd, error) {
328 // This requires Git 2.42.0 for `--format` with `objecttype`.
329 return gitNoLFSBuffered(
330 "ls-files",
331 "--cached",
332 "--exclude-standard",
333 "--full-name",
334 "--sparse",
335 "-z",
336 "--format=%(objectmode) %(objecttype) %(objectname) %(objectsize)\t%(path)",
337 ":(top,attr:filter=lfs)",
338 )
339}
340
341func ResolveRef(ref string) (*Ref, error) {
342 outp, err := gitNoLFSSimple("rev-parse", ref, "--symbolic-full-name", ref)

Callers 1

lsFilesBlobsFunction · 0.92

Calls 1

gitNoLFSBufferedFunction · 0.85

Tested by

no test coverage detected