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

getGitHashForFiles() function

Takes a list of files and returns the current git hashes for them

Signature:

export declare function getGitHashForFiles(filesToHash: string[], packagePath: string): Map<string, string>;

Parameters

Parameter Type Description
filesToHash string[]  
packagePath string  

Returns:

Map<string, string>