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

Method with_details

atomic-repository/src/status.rs:328–344  ·  view source on GitHub ↗

Create a new entry with full details.

(
        path: PathBuf,
        status: FileStatus,
        inode: Option<Inode>,
        recorded_hash: Option<Hash>,
        current_hash: Option<Hash>,
        details: Option<String>,
    )

Source from the content-addressed store, hash-verified

326
327 /// Create a new entry with full details.
328 pub fn with_details(
329 path: PathBuf,
330 status: FileStatus,
331 inode: Option<Inode>,
332 recorded_hash: Option<Hash>,
333 current_hash: Option<Hash>,
334 details: Option<String>,
335 ) -> Self {
336 Self {
337 path,
338 status,
339 inode,
340 recorded_hash,
341 current_hash,
342 details,
343 }
344 }
345
346 /// Get the file path relative to the repository root.
347 pub fn path(&self) -> &Path {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected