lsTree method
Implementation
Future<List<TreeEntry>> lsTree(
String treeish, {
bool subTreesOnly = false,
String? path,
}) async {
final args = ['ls-tree'];
if (subTreesOnly == true) {
args.add('-d');
}
args.add(treeish);
if (path != null) {
args.add(path);
}
final pr = await runCommand(args);
return TreeEntry.fromLsTreeOutput(pr.stdout as String);
}