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