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

Method is_in_progress

atomic-cli/src/commands/git/observation.rs:275–281  ·  view source on GitHub ↗

Whether Git owns an in-progress operation. True when libgit2 reports a non-`Clean` state or an authoritative marker is present; a standalone `AUTO_MERGE` is advisory and does not, by itself, count.

(&self)

Source from the content-addressed store, hash-verified

273 /// non-`Clean` state or an authoritative marker is present; a standalone
274 /// `AUTO_MERGE` is advisory and does not, by itself, count.
275 pub fn is_in_progress(&self) -> bool {
276 self.repository_state != "Clean"
277 || self
278 .markers
279 .iter()
280 .any(|marker| marker.is_present() && marker.marker.is_active_operation_evidence())
281 }
282
283 /// Every present marker, including advisory ones, for reporting.
284 pub fn present_markers(&self) -> Vec<OperationMarkerKind> {

Callers 1

Calls 3

iterMethod · 0.45
is_presentMethod · 0.45

Tested by

no test coverage detected