Skip to main content

detect_git_info

Function detect_git_info 

Source
pub async fn detect_git_info(dir: PathBuf) -> Option<String>
Expand description

Re-exported worktree and branch-detection APIs. Detects git repository information for the given directory. Returns the current branch name if in a git repository, None otherwise.