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

Method commit

atomic-cli/tests/it/git_shim_logging_test.rs:75–79  ·  view source on GitHub ↗
(&self, path: &str, content: &str, message: &str)

Source from the content-addressed store, hash-verified

73 }
74
75 fn commit(&self, path: &str, content: &str, message: &str) {
76 fs::write(self.dir().join(path), content).unwrap();
77 self.git(&["add", path]);
78 self.git(&["commit", "-q", "-m", message]);
79 }
80
81 fn log_dir(&self) -> PathBuf {
82 self.home.path().join(".atomic").join("logs")

Calls 4

dirMethod · 0.80
writeFunction · 0.70
unwrapMethod · 0.45
gitMethod · 0.45

Tested by

no test coverage detected