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

Method new

atomic-cli/src/commands/diff/command.rs:125–146  ·  view source on GitHub ↗

Create a new Diff command with default settings.

()

Source from the content-addressed store, hash-verified

123impl Diff {
124 /// Create a new Diff command with default settings.
125 pub fn new() -> Self {
126 Self {
127 files: Vec::new(),
128 change: None,
129 algorithm: "myers".to_string(),
130 context: 3,
131 stat: false,
132 no_color: false,
133 name_only: false,
134 name_status: false,
135 short: false,
136 untracked: false,
137 cached: false,
138 git: false,
139 view: None,
140 from: None,
141 to: None,
142 snapshot: false,
143 word_diff: false,
144 json: false,
145 }
146 }
147
148 /// Builder: set files to diff.
149 pub fn with_files<I, S>(mut self, files: I) -> Self

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected