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