Get the display path for the file.
(&self)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected