Repository navigation
Commit 1bd1e08
committed
git(feat[filter]): Add typed partial-clone filter models
why: Git partial-clone filters use a structured grammar (blob:none,
blob:limit, tree, object:type, sparse:oid, auto, combine) that
callers need to build, inspect, and validate before running Git.
what:
- Add frozen dataclasses for each filter kind with kind, to_spec,
and __str__
- Add parse_filter, from_mapping, coerce_filter, and filter_specs
with uint64, combine percent-encoding, and nesting checks
- Cover round-trips, native Git ulong parity, and invalid inputs1 parent c3f60ca commit 1bd1e08
2 files changed
Lines changed: 781 additions & 0 deletions
0 commit comments