Skip to main content
Version: Next

GitUtils.readFileAtRef()

Home > @backstage/cli-node > GitUtils > readFileAtRef

Returns the contents of a file at a specific ref.

Signature:

static readFileAtRef(path: string, ref: string): Promise<string>;

Parameters

ParameterTypeDescription
pathstring
refstring

Returns:

Promise<string>