pub fn check_git_repository() -> Result<()>
Validates that the current directory is in a valid git repository.
This is a lightweight check that opens the repository without loading any commit data.