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, gitPath?: string): Map<string, string>;
Parameters
Parameter | Type | Description |
---|---|---|
filesToHash | string[] | |
packagePath | string | |
gitPath | string | (Optional) |
Returns:
Map<string, string>