Skip to content

feat(git): migrate Rust Git operations to gix - #19

Merged
vitaliytv merged 19 commits into
mainfrom
mt/gix-migration-plan
Jul 29, 2026
Merged

feat(git): migrate Rust Git operations to gix#19
vitaliytv merged 19 commits into
mainfrom
mt/gix-migration-plan

Conversation

@vitaliytv

Copy link
Copy Markdown
Member

What changed

  • Added mt-core::git facade backed by gix for repository discovery, refs, objects, claim commits, remote fetch and worktree inspection.
  • Isolated unsupported operations in the documented git::compat boundary.
  • Migrated runtime callers and all Rust test fixtures away from direct Git CLI invocation.
  • Added a static guard that permits Command::new("git") only in git/compat.rs.

Why

The runtime previously spread direct Git CLI calls across core, runner, publish, worktree and agent-server code. The facade makes native gix capabilities explicit while retaining exact Git semantics where gix 0.86 has no equivalent safe API.

Validation

  • cargo fmt --all -- --check
  • cargo test --workspace
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • npx @7n/rules lint doc-files
  • npx @7n/rules lint changelog

@vitaliytv
vitaliytv marked this pull request as ready for review July 29, 2026 12:37
@vitaliytv
vitaliytv merged commit 885d97e into main Jul 29, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant