tarlatan
    Preparing search index...

    Function decodeTreeRun

    • Decodes one git ls-tree -z run. Exit 0 decodes stdout into its entries, in listing order, and empty stdout is no entries. Any other exit is TreeNotListed with its exit code and stderr. Stdout that does not decode is TreeUndecodable with the schema's message; this decoder never fails, so a bad listing cannot pass for an empty one.

      Parameters

      • run: { exitCode: number; stderr: string; stdout: string }

      Returns TreeEntries | TreeNotListed | TreeUndecodable