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

Method staged

atomic-repository/src/repository/staging.rs:140–144  ·  view source on GitHub ↗

Entries whose staged (X) column is not Unmodified.

(&self)

Source from the content-addressed store, hash-verified

138impl StagingState {
139 /// Entries whose staged (X) column is not Unmodified.
140 pub fn staged(&self) -> impl Iterator<Item = &StagingEntry> {
141 self.entries
142 .iter()
143 .filter(|entry| entry.x != StageCode::Unmodified)
144 }
145
146 /// Entries whose unstaged (Y) column is not Unmodified.
147 pub fn unstaged(&self) -> impl Iterator<Item = &StagingEntry> {

Callers

nothing calls this directly

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected