(
local: Local,
encoding: Option<Encoding>,
content_start: u64,
content_end: u64,
deleted_lines: Vec<usize>,
)
| 224 | /// ``` |
| 225 | #[must_use] |
| 226 | pub fn new_replace( |
| 227 | local: Local, |
| 228 | encoding: Option<Encoding>, |
| 229 | content_start: u64, |
| 230 | content_end: u64, |
| 231 | deleted_lines: Vec<usize>, |
| 232 | ) -> Self { |
| 233 | Self { |
| 234 | kind: BuiltHunkKind::Replace, |
| 235 | local, |
| 236 | encoding, |
| 237 | content_start: Some(content_start), |
| 238 | content_end: Some(content_end), |
| 239 | deleted_lines, |
| 240 | old_start: 0, |
| 241 | new_start: 0, |
| 242 | new_len: 0, |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | /// Create a new replace graph_op with line tracking. |
| 247 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected