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

Function capture_tracked_wip

atomic-repository/src/wip.rs:118–123  ·  view source on GitHub ↗

Preserve the current tracked working tree under an immutable local Git ref. The live index is only read. A temporary alternate index is initialized from the observed `HEAD`, then updated with the union of `HEAD` and live-index paths. Git therefore applies normal clean filters and records file modes, symlinks, deletions, and zero-byte blobs without adding unrelated untracked files. The resulting r

(request: WipCaptureRequest<'_>)

Source from the content-addressed store, hash-verified

116/// files. The resulting recovery commit has the observed current `HEAD` as its
117/// only parent and carries no Atomic change, view, agent, or provenance claims.
118pub fn capture_tracked_wip(request: WipCaptureRequest<'_>) -> Result<WipCapture, WipCaptureError> {
119 validate_identifier("workspace", request.workspace)?;
120 validate_identifier("operation", request.operation)?;
121 let prepared = prepare_tracked_wip(request.repository_root)?;
122 create_prepared_capture(request, prepared)
123}
124
125/// Preserve tracked bytes or safely reuse the immutable ref from an earlier
126/// attempt of the same operation.

Calls 3

validate_identifierFunction · 0.85
prepare_tracked_wipFunction · 0.85
create_prepared_captureFunction · 0.85