MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / open_git

Function open_git

atomic-cli/src/commands/status_git.rs:410–414  ·  view source on GitHub ↗
(repo_root: &Path)

Source from the content-addressed store, hash-verified

408}
409
410fn open_git(repo_root: &Path) -> CliResult<git2::Repository> {
411 git2::Repository::open(repo_root).map_err(|error| CliError::GitError {
412 message: format!("cannot open Git repository: {error}"),
413 })
414}
415
416/// Overlay Git-informed classifications onto native status output.
417///

Callers 2

run_git_statusFunction · 0.70

Calls 1

openFunction · 0.85

Tested by

no test coverage detected