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.