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

Method print_fork_point

atomic-cli/src/commands/log/command.rs:458–477  ·  view source on GitHub ↗

Print a fork-point separator indicating where the draft diverged.

(&self, parent_name: &str, inherited_count: u64)

Source from the content-addressed store, hash-verified

456
457 /// Print a fork-point separator indicating where the draft diverged.
458 fn print_fork_point(&self, parent_name: &str, inherited_count: u64) {
459 if self.effective_format() == LogFormat::Json {
460 // JSON output doesn't get decorative separators
461 return;
462 }
463 let changes_word = if inherited_count == 1 {
464 "change"
465 } else {
466 "changes"
467 };
468 println!(
469 "{}",
470 hint(format!(
471 "\n\u{2500}\u{2500} fork point: {} ({} {}) \u{2500}\u{2500}",
472 style_view(parent_name),
473 inherited_count,
474 changes_word
475 ))
476 );
477 }
478}
479
480impl Default for Log {

Callers

nothing calls this directly

Calls 1

effective_formatMethod · 0.80

Tested by

no test coverage detected