Create a new name conflict. Name conflicts occur when a file has been renamed by concurrent changes.
(path: String, changes: Vec<Hash>, id: usize)
| 294 | /// |
| 295 | /// Name conflicts occur when a file has been renamed by concurrent changes. |
| 296 | pub fn name(path: String, changes: Vec<Hash>, id: usize) -> Self { |
| 297 | Self { |
| 298 | conflict_type: ConflictType::Name, |
| 299 | path, |
| 300 | inode_vertex: Position::ROOT, |
| 301 | line: 0, |
| 302 | changes, |
| 303 | id, |
| 304 | } |
| 305 | } |
| 306 | |
| 307 | /// Get the file path where this conflict occurs. |
| 308 | pub fn path(&self) -> &str { |
no outgoing calls