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

Function identities

libatomic/src/review/view_comparison.rs:323–342  ·  view source on GitHub ↗
(repo: &Repository, view: &ViewInspection)

Source from the content-addressed store, hash-verified

321}
322
323fn identities(repo: &Repository, view: &ViewInspection) -> CliResult<BTreeMap<String, String>> {
324 let ids = repo
325 .recorded_file_inodes_on_view(&view.paths, &view.view)
326 .map_err(CliError::Repository)?;
327 view.paths
328 .iter()
329 .zip(ids)
330 .map(|(path, inode)| {
331 Ok((
332 path.clone(),
333 inode
334 .ok_or_else(|| {
335 invalid("Visible recorded file lost its inode identity during comparison")
336 })?
337 .get()
338 .to_string(),
339 ))
340 })
341 .collect()
342}
343
344fn pair_paths(
345 before: &BTreeMap<String, String>,

Callers 1

resolveFunction · 0.85

Calls 6

invalidFunction · 0.70
getMethod · 0.65
collectMethod · 0.45
iterMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected