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

Function git

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

Source from the content-addressed store, hash-verified

92}
93
94fn git(root: &Path, args: &[&str]) -> Output {
95 let mut command = Command::new("git");
96 command.args(args).current_dir(root);
97 // Deterministic identity + dates: identical corpus state across fresh
98 // repositories produces identical commit OIDs (the equivalence run
99 // depends on this).
100 command
101 .env("GIT_AUTHOR_NAME", "Budget Bench")
102 .env("GIT_AUTHOR_EMAIL", "bench@example.com")
103 .env("GIT_COMMITTER_NAME", "Budget Bench")
104 .env("GIT_COMMITTER_EMAIL", "bench@example.com")
105 .env("GIT_AUTHOR_DATE", "@1726732800 +0000")
106 .env("GIT_COMMITTER_DATE", "@1726732800 +0000");
107 command.output().expect("run git")
108}
109
110fn git_ok(root: &Path, args: &[&str]) {
111 let output = git(root, args);

Callers 2

git_okFunction · 0.70
equivalence_identityMethod · 0.70

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected