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

Method raw_git_drift

atomic-cli/tests/it/git_guard_cb0c_test.rs:129–135  ·  view source on GitHub ↗
(&self, branch: &str)

Source from the content-addressed store, hash-verified

127 }
128
129 fn raw_git_drift(&self, branch: &str) {
130 self.git_ok(&["switch", "-q", "-c", branch]);
131 fs::write(self.root().join("tracked.txt"), b"raw Git checkout\n")
132 .expect("write Git-side drift");
133 self.git_ok(&["add", "tracked.txt"]);
134 self.git_ok(&["commit", "--no-gpg-sign", "-q", "-m", "raw Git checkout"]);
135 }
136
137 fn log_json(&self) -> Vec<u8> {
138 self.atomic_ok(&["log", "-f", "json", "--full-hash"]).stdout

Calls 3

writeFunction · 0.70
git_okMethod · 0.45
rootMethod · 0.45

Tested by

no test coverage detected