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

Method is_dirty

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

Check if this status represents a change that needs to be recorded. Returns `true` for statuses that indicate uncommitted changes.

(&self)

Source from the content-addressed store, hash-verified

183 ///
184 /// Returns `true` for statuses that indicate uncommitted changes.
185 pub fn is_dirty(&self) -> bool {
186 matches!(
187 self,
188 FileStatus::Modified
189 | FileStatus::Deleted
190 | FileStatus::Added
191 | FileStatus::TypeChanged
192 | FileStatus::PermissionsChanged
193 )
194 }
195
196 /// Check if this status represents an untracked file.
197 pub fn is_untracked(&self) -> bool {

Callers 5

runMethod · 0.80
record_turnFunction · 0.80
is_cleanMethod · 0.80
dirtyMethod · 0.80

Calls

no outgoing calls