Skip to main content

detect_unauthorized_commit

Function detect_unauthorized_commit 

Source
pub fn detect_unauthorized_commit(repo_root: &Path) -> bool
Expand description

Detect unauthorized commits by comparing current HEAD against stored OID.

Returns true if HEAD has changed (indicating an unauthorized commit), false if HEAD matches or comparison is not possible.