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

Function open_git

atomic-cli/src/commands/git/shim.rs:2806–2808  ·  view source on GitHub ↗
(root: &Path)

Source from the content-addressed store, hash-verified

2804}
2805
2806pub(crate) fn open_git(root: &Path) -> CliResult<GitRepository> {
2807 GitRepository::open(root).map_err(|error| git_error(format!("cannot open repository: {error}")))
2808}
2809
2810fn current_attached_git_branch(git: &GitRepository) -> CliResult<String> {
2811 match observe_head(git).map_err(observation_error)? {

Callers 15

enable_anchor_innerFunction · 0.70
publishFunction · 0.70
verifyFunction · 0.70
fetchFunction · 0.70
resurrectFunction · 0.70
queueFunction · 0.70
runMethod · 0.70
switch_transactionFunction · 0.70

Calls 2

openFunction · 0.85
git_errorFunction · 0.70

Tested by

no test coverage detected