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

Method display_path

atomic-repository/src/diff_engine.rs:659–665  ·  view source on GitHub ↗

Get the display path for the file.

(&self)

Source from the content-addressed store, hash-verified

657
658 /// Get the display path for the file.
659 pub fn display_path(&self) -> &str {
660 match self.status {
661 FileChangeStatus::Added => &self.new_path,
662 FileChangeStatus::Deleted => &self.old_path,
663 _ => &self.new_path,
664 }
665 }
666}
667
668// File Change Status

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected