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

Method collect_untracked_files

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

Collect all untracked files in the repository.

(&self, repo: &Repository)

Source from the content-addressed store, hash-verified

258
259 /// Collect all untracked files in the repository.
260 fn collect_untracked_files(&self, repo: &Repository) -> CliResult<Vec<PathBuf>> {
261 let status = repo
262 .status(StatusOptions::default())
263 .map_err(|e| CliError::Internal(e.into()))?;
264
265 Ok(status.untracked().map(|e| e.path().to_path_buf()).collect())
266 }
267
268 /// Add a single path to tracking.
269 fn add_path(

Callers 1

runMethod · 0.80

Calls 3

untrackedMethod · 0.80
statusMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected