Print a fork-point separator indicating where the draft diverged.
(&self, parent_name: &str, inherited_count: u64)
| 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 | |
| 480 | impl Default for Log { |
nothing calls this directly
no test coverage detected