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

Function format_paths

atomic-cli/src/commands/git/shim.rs:3313–3323  ·  view source on GitHub ↗
(paths: &[&T])

Source from the content-addressed store, hash-verified

3311}
3312
3313fn format_paths<T: AsRef<str>>(paths: &[&T]) -> String {
3314 if paths.is_empty() {
3315 "none".to_string()
3316 } else {
3317 paths
3318 .iter()
3319 .map(|path| path.as_ref())
3320 .collect::<Vec<_>>()
3321 .join(", ")
3322 }
3323}
3324
3325fn write_workspace_metadata(root: &Path, snapshot: &ShimSnapshot) -> CliResult<()> {
3326 checkpoint::write_verified_checkpoint(

Callers

nothing calls this directly

Calls 3

as_refMethod · 0.80
is_emptyMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected