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

Method status

atomic-repository/src/repository/status.rs:33–45  ·  view source on GitHub ↗

Compute the status of the working copy. Optimized for repositories with tens of thousands of files: 1. **Single TREE pass** — builds tracked_paths + inode_map together 2. **FILE_INDEX fast path** — stat-only check for unchanged files 3. **Clean files skipped** — only Modified/Added/Deleted/Untracked allocated 4. **Deferred walkdir** — filesystem walk only when untracked files requested # Perfor

(
        &self,
        working_copy: WorkingCopyId,
        options: StatusOptions,
    )

Source from the content-addressed store, hash-verified

31 /// | 43,000 files | ~150s | <3s |
32 /// | 80,000 files | ~150s | <5s |
33 pub fn status(
34 &self,
35 working_copy: WorkingCopyId,
36 options: StatusOptions,
37 ) -> Result<RepositoryStatus, RepositoryError> {
38 self.status_inner(
39 working_copy,
40 options,
41 UntrackedScanPolicy::Always,
42 true,
43 None,
44 )
45 }
46
47 /// Compute status for recording without scanning unrelated untracked files.
48 ///

Calls 1

status_innerMethod · 0.80