Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
Check computes the hash of sourceDir and compares it to the hash stored in hashFile. Returns a *MismatchError if the hashes differ.
func ComputeHash ¶
ComputeHash produces a deterministic SHA-256 hash over all git-tracked files in sourceDir. Each file contributes its relative path (forward-slash normalized) and its content to the hash, ensuring renames and content changes are detected.
Types ¶
type MismatchError ¶
MismatchError is returned by Check when the stored hash does not match the computed hash.
func (*MismatchError) Error ¶
func (e *MismatchError) Error() string
Click to show internal directories.
Click to hide internal directories.