Skip to main content

repo_path

Function repo_path 

Source
pub fn repo_path(cwd: &Path) -> Result<PathBuf>
Expand description

Resolve the repo-local .cwconfig.json path for the given cwd. Returns Err when cwd is not inside a git repository — --repo is a no-op outside one and we surface that as an error rather than silently writing under the user’s home.