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

Method new

atomic-repository/src/record/move_evidence.rs:62–74  ·  view source on GitHub ↗

Construct authoritative move evidence.

(
        old_path: impl Into<String>,
        new_path: impl Into<String>,
        inode: Inode,
        authority: MoveAuthority,
    )

Source from the content-addressed store, hash-verified

60impl AuthoritativeMove {
61 /// Construct authoritative move evidence.
62 pub fn new(
63 old_path: impl Into<String>,
64 new_path: impl Into<String>,
65 inode: Inode,
66 authority: MoveAuthority,
67 ) -> Self {
68 Self {
69 old_path: old_path.into(),
70 new_path: new_path.into(),
71 inode,
72 authority,
73 }
74 }
75}
76
77/// A heuristic move candidate that must not be treated as exact identity.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected