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

Method new

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

Create a new file status entry. # Arguments `path` - Path relative to repository root `status` - The file's status

(path: PathBuf, status: FileStatus)

Source from the content-addressed store, hash-verified

314 /// * `path` - Path relative to repository root
315 /// * `status` - The file's status
316 pub fn new(path: PathBuf, status: FileStatus) -> Self {
317 Self {
318 path,
319 status,
320 inode: None,
321 recorded_hash: None,
322 current_hash: None,
323 details: None,
324 }
325 }
326
327 /// Create a new entry with full details.
328 pub fn with_details(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected