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

Function write_workspace_metadata

atomic-cli/src/commands/git/shim.rs:3325–3337  ·  view source on GitHub ↗
(root: &Path, snapshot: &ShimSnapshot)

Source from the content-addressed store, hash-verified

3323}
3324
3325fn write_workspace_metadata(root: &Path, snapshot: &ShimSnapshot) -> CliResult<()> {
3326 checkpoint::write_verified_checkpoint(
3327 root,
3328 VerifiedCheckpointInput {
3329 view: &snapshot.view,
3330 atomic_state: &snapshot.atomic_state,
3331 git_head: &snapshot.git_head,
3332 git_tree: &snapshot.git_tree,
3333 },
3334 )
3335 .map(|_| ())
3336 .map_err(checkpoint_error)
3337}
3338
3339fn checkpoint_error(error: checkpoint::CheckpointError) -> CliError {
3340 git_error(error.to_string())

Callers 5

switch_transactionFunction · 0.85

Calls 1

Tested by

no test coverage detected