MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / write_git_ref_target

Function write_git_ref_target

atomic-cli/src/commands/op/output.rs:480–491  ·  view source on GitHub ↗
(output: &mut String, indent: usize, target: &GitRefTargetDto)

Source from the content-addressed store, hash-verified

478}
479
480fn 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
493fn format_relation(relation: Option<&OperationRelationDto>) -> String {
494 match relation {

Callers 2

write_effect_valueFunction · 0.85
write_git_observationFunction · 0.85

Calls 2

write_key_valueFunction · 0.85
write_git_objectFunction · 0.85

Tested by

no test coverage detected