Repository navigation
feat(cli): make folder tracking opt-in with --track - #21
Merged
Merged
Conversation
`create --track` records the imported `--add` content in each source's git repository: a baseline commit `refs/ext4kit/<label>/base` parented on HEAD, and a sidecar beside the image tying the image UUID to the label and its mappings. `--label` names the refs and `--include-ignored` widens the baseline; both require `--track`. `--discard-unsnapshotted` and `--replace-mounted` override the old-image gates and work without it, since they protect the existing image, not the new one. The checks run before the output is truncated and retirement runs after the network work, so a refusal or a registry failure leaves the old image, sidecar and refs untouched. A base or sidecar failure leaves the image valid: the refs this run created are removed by SHA and the create still succeeds. Nothing announces the baseline before the sidecar that publishes it is on disk. The end-to-end suite covers the sidecar and base shape, file mappings, a dirty worktree, the ignore policy, opt-in, images with nothing to track, e2fsck cleanliness and the sidecar-write rollback across two repositories. The docs state the 100 MiB per-file cap, which keeps an oversized file out of the baseline with a note, and --verbose. Assisted-by: Claude Code: DeepSeek-V4.1-Flash Signed-off-by: Luca Stocchi <lstocchi@redhat.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
create --trackrecords the imported--addcontent in each source's git repository: a baseline commitrefs/ext4kit/<label>/baseparented on HEAD, and a sidecar beside the image tying the image UUID to the label and its mappings.--labelnames the refs and--include-ignoredwidens the baseline; both require--track.--discard-unsnapshottedand--replace-mountedoverride the old-image gates and work without it, since they protect the existing image, not the new one.The checks run before the output is truncated and retirement runs after the network work, so a refusal or a registry failure leaves the old image, sidecar and refs untouched. A base or sidecar failure leaves the image valid: the refs this run created are removed by SHA and the create still succeeds. Nothing announces the baseline before the sidecar that publishes it is on disk.
The end-to-end suite covers the sidecar and base shape, file mappings, a dirty worktree, the ignore policy, opt-in, images with nothing to track, e2fsck cleanliness and the sidecar-write rollback across two repositories. The docs state the 100 MiB per-file cap, which keeps an oversized file out of the baseline with a note, and --verbose.