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<'_>)
| 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. |
| 118 | pub 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. |