parseLsTree
parseLsTree(
stdout,opts?):ParsedLsTreeEntry[]
Defined in: src/parsers/index.ts:584
Parse git ls-tree output
Supports multiple output formats:
- Default:
\t - With —long:
\t - With —name-only:
- With —object-only:
Parameters
stdout
string
Raw stdout from git ls-tree
opts?
Parser options to handle different output modes
long?
boolean
nameOnly?
boolean
objectOnly?
boolean
Returns
Parsed tree entries