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

Function git

atomic-cli/tests/it/git_shim_cb10a_test.rs:168–178  ·  view source on GitHub ↗
(root: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

166}
167
168fn git(root: &Path, args: &[&str]) -> Output {
169 Command::new("git")
170 .args(args)
171 .current_dir(root)
172 .env("GIT_AUTHOR_NAME", "CB-10A Tests")
173 .env("GIT_AUTHOR_EMAIL", "cb10a@example.com")
174 .env("GIT_COMMITTER_NAME", "CB-10A Tests")
175 .env("GIT_COMMITTER_EMAIL", "cb10a@example.com")
176 .output()
177 .expect("run git")
178}
179
180fn commit_file(repository: &GitRepository, path: &str, content: &[u8], message: &str) -> Oid {
181 let worktree = repository.workdir().expect("Git worktree");

Callers 1

gitMethod · 0.70

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected