//! Git-specific effect handlers.
//!//! This module provides convenience wrappers for Git operations
//! that can be used by the effect executor.
usestd::path::Path;/// Git operation utilities for effect execution.
pubstructGitEffects;implGitEffects{/// Check if a path is a valid Git repository.
pubfnis_git_repo(path:&Path)->bool{
path.join(".git").exists()}/// Get the repository root from a path within it.
pubfnrepo_root(path:&Path)->Option<String>{letmut current = path.to_path_buf();while!current.join(".git").exists(){if!current.pop(){returnNone;}}Some(current.to_string_lossy().to_string())}}