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

Function git

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

Source from the content-addressed store, hash-verified

79}
80
81fn git(root: &Path, args: &[&str]) -> Output {
82 Command::new("git")
83 .args(args)
84 .current_dir(root)
85 // These fixtures compare commit OIDs. User/system signing and hooks
86 // configuration must not introduce signatures or mutate their commits.
87 .env("GIT_CONFIG_NOSYSTEM", "1")
88 .env("GIT_CONFIG_GLOBAL", "/dev/null")
89 .env("GIT_AUTHOR_NAME", "CB-13D Tests")
90 .env("GIT_AUTHOR_EMAIL", "cb13d@example.com")
91 .env("GIT_COMMITTER_NAME", "CB-13D Tests")
92 .env("GIT_COMMITTER_EMAIL", "cb13d@example.com")
93 // Deterministic commit identities (review R5): identical content in
94 // two fresh repositories produces identical commit OIDs, so ref
95 // *targets* can be compared across fixtures instead of being
96 // normalized away.
97 .env("GIT_AUTHOR_DATE", "2026-09-14T00:00:00Z")
98 .env("GIT_COMMITTER_DATE", "2026-09-14T00:00:00Z")
99 .output()
100 .expect("run git")
101}
102
103/// Replace runs of base32 characters (Atomic state identities) with a
104/// placeholder so cross-repository comparisons compare shapes, not

Callers 1

git_okFunction · 0.70

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected