Commit graph

3 commits

Author SHA1 Message Date
7fe99cabbd
feat: optional SSH key commit signing (phase 10)
- Add ssh-key crate dependency for SSHSIG format signing/verification
- Add signing module with sign, verify, and fingerprint functions
- Add ssh_signature field to Commit model (optional, backward-compatible)
- Integrate signing into commit flow (signs when user.key is configured)
- Show [signed] tag in log output for signed commits
- Show signature fingerprint and verification status in show output
- Gracefully degrade if key is missing/invalid (warns, commits unsigned)
- Add openssh to nix flake nativeCheckInputs for ssh-keygen in tests
- Add comprehensive signing tests covering signed/unsigned commits
2026-02-08 16:34:05 +00:00
d7694737de
feat: implement phase 9 - git bridge and remotes
- Add git2 dependency with vendored libgit2/openssl for nix compatibility
- Add src/remote.rs: remote add/rm/list with YAML persistence (.arc/remotes.yml)
- Add src/bridge.rs: git bridge with shadow repo (.arc/git/) and commit mapping
  - arc-to-git conversion: materialize trees, create git commits via TreeBuilder
  - git-to-arc conversion: walk git trees, compute deltas, create arc commits
  - Bidirectional mapping cache in .arc/git-map.yml
- Implement push: convert arc commits to git, push bookmarks as branches and
  tags as git tags (rules 19/20) via git2 with SSH agent support
- Implement pull: fetch from remote, import new commits, fast-forward bookmarks
- Implement clone: git2 clone into shadow repo, import all history, set up
  worktree at specified branch with origin remote auto-configured
- Implement migrate: convert existing git repo to arc, preserving all branches
  as bookmarks, tags, commit history, and git remotes
- Implement sync: ensure shadow git mirrors arc refs, optionally push to remote
- Wire all CLI stubs (push/pull/clone/migrate/sync/remote) to implementations
- Add new error variants: Git, RemoteNotFound, RemoteAlreadyExists, etc.
- Exclude .git/ from worktree scanning alongside .arc/ for coexistence
- Update flake.nix with cmake/perl/git build inputs for vendored compilation
- Add 23 new integration tests (16 bridge + 7 remote) covering all commands
2026-02-08 02:53:12 +00:00
c2eb9f42ba
feat: project scaffolding with nix flake, direnv, and CLI skeleton
- Nix flake with nixpkgs-unstable, flake-parts, fenix, and crane
- .envrc for direnv integration
- Rust project with clap-based CLI covering all planned commands
- Subcommands: init, commit, log, status, diff, switch, merge, show,
  history, revert, reset, push, pull, clone, migrate, mark, tag,
  stash, graft, config, sync, remote
- Integration tests for CLI help, version, and subcommand parsing
- All commands print placeholder output for future implementation
2026-02-06 17:55:42 +00:00