gabriel / muse public
feat patch task/bridge-phase2 #1 / 1
AI Agent gabriel · 46 days ago · Apr 27, 2026 · Diff

feat: implement muse bridge git-import Phase 2

Full git-to-Muse import engine replacing the Phase 1 stub.

New symbols in bridge.py: - _DEFAULT_EXCLUDE_PREFIXES / _DEFAULT_EXCLUDE_SUFFIXES — default path filters - _should_exclude() — path exclusion predicate - AttributionMapper — email-to-handle mapping with synthetic fallback - _CatFile — long-running git cat-file --batch process manager - _git() — thin subprocess wrapper - _batch_commit_log() — oldest-first commit list with NUL-delimited format - _batch_diff_tree() — per-commit file diff → {path: blob_sha|None} - _is_lfs_pointer() — LFS pointer detection - _parse_sem_ver_bump() — conventional commit → semver bump level - _replay_commit() — single commit replay into Muse object store - _replay_branch() — full branch replay orchestrator with reflog - _list_git_branches() / _list_git_tags() — git metadata helpers - _import_tags() — git tag → Muse TagRecord import - run_git_import() — full CLI entry point (replaces stub)

New test file: tests/test_bridge_git_import.py (41 tests, 8 tiers). All 41 tests pass in ~12s.

sha256:0e4a3658a1cd02c58d1ad373dded35e9d22618c514a51b37a09c14e04d093fbe sha
sha256:c1f6d2f80d3e22a3a26034ade0c6dd579f0ee837d83b5ad91df93e45d2fb6c69 snapshot
← Older Oldest on task/bridge-phase2
All commits
Newer → Latest on task/bridge-phase2

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:0e4a3658a1cd02c58d1ad373dded35e9d22618c514a51b37a09c14e04d093fbe --body "your comment"