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

Method is_in_progress

atomic-repository/src/repository/git_observation.rs:857–863  ·  view source on GitHub ↗

Whether Git owns an in-progress operation that must fence a workspace mutation. True when libgit2 reports a non-`Clean` repository state, or when any present marker is authoritative evidence of an active operation (`is_active_operation_evidence`). A standalone `AUTO_MERGE` does not, by itself, count: it is advisory.

(&self)

Source from the content-addressed store, hash-verified

855 /// (`is_active_operation_evidence`). A standalone
856 /// `AUTO_MERGE` does not, by itself, count: it is advisory.
857 pub fn is_in_progress(&self) -> bool {
858 self.repository_state != "Clean"
859 || self.markers.iter().any(|marker| {
860 marker.kind != GitAdminEntryKind::Missing
861 && marker.marker.is_active_operation_evidence()
862 })
863 }
864
865 /// Every present marker, including advisory ones, for reporting.
866 pub fn present_markers(&self) -> Vec<GitOperationMarker> {

Callers 4

git_state_quiescentFunction · 0.45
evaluateMethod · 0.45
classify_git_stateFunction · 0.45

Calls 2

iterMethod · 0.45

Tested by

no test coverage detected