Home > @microsoft/rush-lib > IInputsSnapshot > getTrackedFileHashesForOperation
IInputsSnapshot.getTrackedFileHashesForOperation() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Gets the map of file paths to Git hashes that will be used to compute the local state hash of the operation. Exposed separately from the final state hash to facilitate detailed change detection.
Signature:
getTrackedFileHashesForOperation(project: IRushConfigurationProjectForSnapshot, operationName?: string): ReadonlyMap<string, string>;
Parameters
Parameter | Type | Description |
|---|---|---|
project | The Rush project to get hashes for | |
operationName | string | (Optional) The name of the operation (phase) to get hashes for. If omitted, returns a default set for the project, as used for bulk commands. |
Returns:
ReadonlyMap<string, string>
A map of file name to Git hash. For local files paths will be relative. Configured additional files may be absolute paths.