(ref string)
| 314 | } |
| 315 | |
| 316 | func 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 | |
| 327 | func LsFilesLFS() (*subprocess.BufferedCmd, error) { |
| 328 | // This requires Git 2.42.0 for `--format` with `objecttype`. |
no test coverage detected