diff --git a/AGENTS.md b/AGENTS.md index ce6a396..4dbf885 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -127,7 +127,10 @@ streaming import design. checks are skipped with a note; CI sets `EXT4KIT_REQUIRE_E2FSPROGS=1` so they fail instead. `oci.rs` holds `#[ignore]`d `--from` tests that need Docker Hub or a Docker engine. `open.rs` reopens created images through - the library, and `edit.rs` runs sequences of `ext4kit edit` calls. + the library, `edit.rs` runs sequences of `ext4kit edit` calls, and + `tracked.rs` covers folder tracking at create time, skipping with a note + when git is missing (`EXT4KIT_REQUIRE_GIT=1` makes it fail instead, like + the e2fsprogs pattern). - Build small images in memory with `Ext4ImageBuilder::new(16)`, then call `create_root_dir()`, `create_lost_and_found()` and `reserve_inodes()` (`ext4::test_support::fresh_builder()` does this). Assert by reading back diff --git a/README.md b/README.md index ed15704..0e62fe7 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,42 @@ flags take numeric IDs only, because the user that matters is the one in the VM the disk is attached to, not one in an image's `/etc/passwd`. A missing GID defaults to the UID. +### Tracked folders + +Tracking is opt-in: pass `--track` and, when every `--add` source lies inside +a git repository and no two additions overlap, `create` records the mapping +beside the image (in `.ext4kit-tracked`) and writes a **baseline +commit** `refs/ext4kit/