pub fn find_git_root() -> Option<PathBuf>Expand description
Finds the git repository root by walking upward from the current directory.
Equivalent to git rev-parse --show-toplevel.
Checks whether .git (directory or file, for submodule/worktree compatibility)
exists at each level.