RoadmapShopEvents
Skip to main content

Home > @rushstack/package-deps-hash > getRepoState

getRepoState() function

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Gets the object hashes for all files in the Git repo, combining the current commit with working tree state.

Signature:

export declare function getRepoState(currentWorkingDirectory: string, gitPath?: string): Map<string, string>;

Parameters

ParameterTypeDescription
currentWorkingDirectorystringThe working directory. Only used to find the repository root.
gitPathstring(Optional) The path to the Git executable

Returns:

Map<string, string>