Skip to main content

git_administrative_identity

Function git_administrative_identity 

Source
pub fn git_administrative_identity(path: &Path) -> FsResult<String>
Expand description

Return an opaque identity for one current Git administrative-directory lifecycle.

The value remains stable when Git moves the checked-out worktree because the administrative directory itself remains in place. Removing and recreating that directory produces a different filesystem identity even when Git reuses its path.

ยงErrors

Returns an error when metadata cannot be read, the path is indirect or not a directory, or the supported platform cannot provide stable lifecycle evidence.