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

Method has_conflicts

atomic-core/src/output/repo/file.rs:335–337  ·  view source on GitHub ↗

Check if any conflicts were detected. # Returns `true` if at least one conflict exists. # Example ```rust use atomic_core::output::repo::FileOutputResult; use atomic_core::types::Inode; let result = FileOutputResult::empty("test.rs", Inode::ROOT); assert!(!result.has_conflicts()); ```

(&self)

Source from the content-addressed store, hash-verified

333 /// assert!(!result.has_conflicts());
334 /// ```
335 pub fn has_conflicts(&self) -> bool {
336 !self.conflicts.is_empty()
337 }
338
339 /// Get the number of conflicts.
340 ///

Callers 3

Calls 1

is_emptyMethod · 0.45

Tested by 3