Create a new Log command with default settings. # Returns A `Log` instance with all default values. # Example ```rust,ignore let log = Log::new(); assert_eq!(log.format, LogFormat::Default); ```
()
| 125 | /// assert_eq!(log.format, LogFormat::Default); |
| 126 | /// ``` |
| 127 | pub fn new() -> Self { |
| 128 | Self { |
| 129 | count: None, |
| 130 | view: None, |
| 131 | tags_only: false, |
| 132 | path: None, |
| 133 | format: LogFormat::Default, |
| 134 | reverse: false, |
| 135 | from: None, |
| 136 | full_hash: false, |
| 137 | all: false, |
| 138 | short: false, |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | /// Resolve the effective output format, accounting for `--short`. |
| 143 | pub(crate) fn effective_format(&self) -> LogFormat { |
nothing calls this directly
no outgoing calls
no test coverage detected