Print entries in the configured format. # Arguments `entries` - History entries to print
(&self, entries: &[HistoryEntry])
| 426 | /// |
| 427 | /// * `entries` - History entries to print |
| 428 | fn print_entries(&self, entries: &[HistoryEntry]) { |
| 429 | let hash_length = self.get_hash_length(); |
| 430 | |
| 431 | let output = match self.effective_format() { |
| 432 | LogFormat::Default => self.format_default(entries, hash_length), |
| 433 | LogFormat::Short => self.format_short(entries, hash_length), |
| 434 | LogFormat::Oneline => self.format_oneline(entries, hash_length), |
| 435 | LogFormat::Json => self.format_json(entries), |
| 436 | }; |
| 437 | |
| 438 | print!("{}", output); |
| 439 | } |
| 440 | |
| 441 | /// Print empty history message. |
| 442 | /// |
no test coverage detected