MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / new

Method new

atomic-cli/src/commands/log/command.rs:127–140  ·  view source on GitHub ↗

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); ```

()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected