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

Method is_dirty

atomic-repository/src/status.rs:196–205  ·  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

194 ///
195 /// Returns `true` for statuses that indicate uncommitted changes.
196 pub fn is_dirty(&self) -> bool {
197 matches!(
198 self,
199 FileStatus::Modified
200 | FileStatus::Deleted
201 | FileStatus::Added
202 | FileStatus::TypeChanged
203 | FileStatus::PermissionsChanged
204 )
205 }
206
207 /// Check if this status represents an untracked file.
208 pub fn is_untracked(&self) -> bool {

Callers 7

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

Calls

no outgoing calls