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

Function working_copy

atomic-repository/tests/it/view_split_test.rs:19–21  ·  view source on GitHub ↗
(repo: &Repository)

Source from the content-addressed store, hash-verified

17use tempfile::TempDir;
18
19fn working_copy(repo: &Repository) -> WorkingCopyId {
20 repo.require_working_copy_id().expect("working copy id")
21}
22
23fn add_file(repo: &Repository, repo_path: &Path, name: &str, content: &str) {
24 fs::write(repo_path.join(name), content).expect("write file");

Callers 7

add_fileFunction · 0.70
recordFunction · 0.70

Calls 1

Tested by

no test coverage detected