(output: &mut String, indent: usize, target: &GitRefTargetDto)
| 478 | } |
| 479 | |
| 480 | fn write_git_ref_target(output: &mut String, indent: usize, target: &GitRefTargetDto) { |
| 481 | match target { |
| 482 | GitRefTargetDto::Direct { object } => { |
| 483 | write_key_value(output, indent, "kind", "direct"); |
| 484 | write_git_object(output, indent, object); |
| 485 | } |
| 486 | GitRefTargetDto::Symbolic { name } => { |
| 487 | write_key_value(output, indent, "kind", "symbolic"); |
| 488 | write_key_value(output, indent, "name", name); |
| 489 | } |
| 490 | } |
| 491 | } |
| 492 | |
| 493 | fn format_relation(relation: Option<&OperationRelationDto>) -> String { |
| 494 | match relation { |
no test coverage detected