Note: This is the migration API reference for FAKE 5. The new (modularized) API documentation can be found here. If the API is already migrated you can check here if exists in a module. More information regarding the migration can be found here

SHA1

Contains functions which allow the SHA1 of a file with git and without it.

Functions and values

Function or valueDescription
calcGitSHA1(text)
Signature: text:string -> string

Calculates the SHA1 for a given string like git.

calcSHA1(text)
Signature: text:string -> string

Calculates the SHA1 for a given string.

showObjectHash repositoryDir fileName
Signature: repositoryDir:string -> fileName:string -> string

Shows the SHA1 calculated by git. Assumes that the CommandHelper module can find git.exe.