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

Method collect_untracked_files

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

Collect all untracked files in the repository.

(
        &self,
        repo: &Repository,
        working_copy: WorkingCopyId,
    )

Source from the content-addressed store, hash-verified

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

Callers 1

runMethod · 0.80

Calls 4

statusMethod · 0.45
collectMethod · 0.45
untrackedMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected