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

Function open_git

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

Source from the content-addressed store, hash-verified

2848}
2849
2850pub(crate) fn open_git(root: &Path) -> CliResult<GitRepository> {
2851 GitRepository::open(root).map_err(|error| git_error(format!("cannot open repository: {error}")))
2852}
2853
2854fn current_attached_git_branch(git: &GitRepository) -> CliResult<String> {
2855 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

git_errorFunction · 0.70
openFunction · 0.50

Tested by

no test coverage detected