| 43 | /// The actual change operations use graph positions, not line numbers. |
| 44 | #[derive(Clone, Debug, Default, PartialEq, Eq, Hash, Serialize, Deserialize)] |
| 45 | pub struct Local { |
| 46 | /// Path to the file (relative to repository root) |
| 47 | pub path: String, |
| 48 | |
| 49 | /// Line number (1-indexed) where the change occurs |
| 50 | /// |
| 51 | /// For insertions, this is the line after which content is inserted. |
| 52 | /// For deletions, this is the first line being deleted. |
| 53 | pub line: u64, |
| 54 | } |
| 55 | |
| 56 | impl Local { |
| 57 | /// Create a new local context. |