Skip to content

@saflib/git


Function: listTree()

listTree(repoRoot, commitHash): ReturnsError<GitTreeEntry[], GitCommandError>>

List every blob at commitHash (recursive) without checking anything out. Directories / trees / commits / tags are skipped — only blob entries are returned. Paths are relative to the repo root.

Parameters

ParameterType
repoRootstring
commitHashstring

Returns

ReturnsError<GitTreeEntry[], GitCommandError>