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

Function LsTree

git/git.go:316–325  ·  view source on GitHub ↗
(ref string)

Source from the content-addressed store, hash-verified

314}
315
316func LsTree(ref string) (*subprocess.BufferedCmd, error) {
317 return gitNoLFSBuffered(
318 "ls-tree",
319 "-r", // recurse
320 "-l", // report object size (we'll need this)
321 "-z", // null line termination
322 "--full-tree", // start at the root regardless of where we are in it
323 ref,
324 )
325}
326
327func LsFilesLFS() (*subprocess.BufferedCmd, error) {
328 // This requires Git 2.42.0 for `--format` with `objecttype`.

Callers 1

lsTreeBlobsFunction · 0.92

Calls 1

gitNoLFSBufferedFunction · 0.85

Tested by

no test coverage detected