(output: &mut String, indent: usize, git: &GitStateDto)
| 416 | } |
| 417 | |
| 418 | fn write_git_state(output: &mut String, indent: usize, git: &GitStateDto) { |
| 419 | writeln!(output, "{}head:", spaces(indent)).unwrap(); |
| 420 | write_git_head(output, indent + 2, &git.head); |
| 421 | match &git.index { |
| 422 | Some(index) => { |
| 423 | writeln!(output, "{}index:", spaces(indent)).unwrap(); |
| 424 | write_git_index(output, indent + 2, index); |
| 425 | } |
| 426 | None => write_key_value(output, indent, "index", "none"), |
| 427 | } |
| 428 | write_key_value(output, indent, "refs_digest", &git.refs_digest); |
| 429 | } |
| 430 | |
| 431 | fn write_git_head(output: &mut String, indent: usize, head: &GitHeadStateDto) { |
| 432 | match head { |
no test coverage detected