(
root: &Path,
index: &Path,
parent_oid: Option<&str>,
)
| 392 | } |
| 393 | |
| 394 | fn initialize_alternate_index( |
| 395 | root: &Path, |
| 396 | index: &Path, |
| 397 | parent_oid: Option<&str>, |
| 398 | ) -> Result<(), WipCaptureError> { |
| 399 | let args = match parent_oid { |
| 400 | Some(parent_oid) => vec![OsString::from("read-tree"), OsString::from(parent_oid)], |
| 401 | None => os_args(&["read-tree", "--empty"]), |
| 402 | }; |
| 403 | git_bytes(root, "initialize alternate index", &args, Some(index), None)?; |
| 404 | Ok(()) |
| 405 | } |
| 406 | |
| 407 | fn update_alternate_index( |
| 408 | root: &Path, |
no test coverage detected