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

Method capture

atomic-cli/tests/it/git_guard_cb0c_test.rs:151–158  ·  view source on GitHub ↗
(fixture: &Fixture)

Source from the content-addressed store, hash-verified

149
150impl RepositorySnapshot {
151 fn capture(fixture: &Fixture) -> Self {
152 Self {
153 atomic: snapshot_path(&fixture.root().join(".atomic")),
154 git: snapshot_path(&fixture.root().join(".git")),
155 worktree: snapshot_worktree(fixture.root()),
156 log: fixture.log_json(),
157 }
158 }
159
160 fn differences(&self, actual: &Self) -> Vec<String> {
161 const MAX_DIFFERENCES: usize = 32;

Callers

nothing calls this directly

Calls 4

log_jsonMethod · 0.80
snapshot_pathFunction · 0.70
snapshot_worktreeFunction · 0.70
rootMethod · 0.45

Tested by

no test coverage detected