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

Method get_tracking_options

atomic-cli/src/commands/add.rs:251–257  ·  view source on GitHub ↗

Convert command options to TrackingOptions.

(&self)

Source from the content-addressed store, hash-verified

249
250 /// Convert command options to TrackingOptions.
251 fn get_tracking_options(&self) -> TrackingOptions {
252 let recursive = self.recursive && !self.no_recursive;
253
254 TrackingOptions::default()
255 .with_recursive(recursive)
256 .with_force(self.force)
257 }
258
259 /// Collect all untracked files in the repository.
260 fn collect_untracked_files(&self, repo: &Repository) -> CliResult<Vec<PathBuf>> {

Calls 2

with_forceMethod · 0.45
with_recursiveMethod · 0.45