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

Method has_conflicts

atomic-core/src/output/repo/file.rs:337–339  ·  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

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

Callers 3

Calls 1

is_emptyMethod · 0.45

Tested by 3