Skip to main content

validate_refs

Function validate_refs 

Source
pub fn validate_refs(repository: &(impl Repository + ?Sized)) -> Result<()>
Expand description

Validate a repository’s advertised refs, symbolic links and HEAD state. Names must be valid, sorted, unique, free of path conflicts, and include a resolved symbolic HEAD’s branch. Unborn HEAD’s target must be absent. Object identities and graph closure are checked separately by the validator.