Print entries in the configured format. # Arguments `entries` - History entries to print
(&self, entries: &[HistoryEntry])
| 405 | /// |
| 406 | /// * `entries` - History entries to print |
| 407 | fn print_entries(&self, entries: &[HistoryEntry]) { |
| 408 | let hash_length = self.get_hash_length(); |
| 409 | |
| 410 | let output = match self.format { |
| 411 | LogFormat::Default => self.format_default(entries, hash_length), |
| 412 | LogFormat::Short => self.format_short(entries, hash_length), |
| 413 | LogFormat::Oneline => self.format_oneline(entries, hash_length), |
| 414 | LogFormat::Json => self.format_json(entries), |
| 415 | }; |
| 416 | |
| 417 | print!("{}", output); |
| 418 | } |
| 419 | |
| 420 | /// Print empty history message. |
| 421 | /// |
no test coverage detected