Commit graph

8 commits

Author SHA1 Message Date
6f307c139b
feat: add backwards compatibility for legacy msgpack storage format 2026-02-10 21:09:58 +00:00
a6b1a027c8
refactor: switch storage format from MessagePack to bincode
- Replace rmp-serde with bincode 1.x in Cargo.toml
- Update store.rs serialization/deserialization and ID hashing
- Rename model.rs helpers from to_msgpack/from_msgpack to to_bytes/from_bytes
- Consolidate MsgPack/MsgPackDecode error variants into single Bincode variant
- Remove skip_serializing_if on ssh_signature (incompatible with bincode)
- Update all documentation to reflect bincode storage format
2026-02-10 21:03:53 +00:00
2e0952f9fb
feat: add colored output with distinct symbols using the colored crate
Add a centralized ui module with Arc's visual identity: colored commit
IDs (magenta), bookmarks (cyan), tags (yellow), status symbols, and
diff highlighting. Update all command output and tests accordingly.
2026-02-09 03:51:59 +00:00
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
1433c2fed6
feat: implement phase 3 - tracking, committing, status, and diff
- Add commit command with auto-change detection (no staging area)
- Add status command showing added/modified/deleted files
- Add diff command with unified diff output
- Store commits as ZSTD-compressed MessagePack in .arc/commits/<id>.zst
- Generate commit/delta IDs via SHA-256 hashing
- Reconstruct committed state by replaying delta chains
- Add ignore pattern matching with glob support (.arcignore/.ignore)
- Always exclude .arc/ directory from worktree scanning
- Update HEAD and bookmark refs on commit
- Add NothingToCommit error variant
- Add zstd, sha2, hex dependencies
- Add 30 new tests across commit, status, diff, and tracking
2026-02-06 18:16:42 +00:00
dca6a9ae76
feat: implement phase 2 core repo structure
- Add Repository struct with init/open/discover methods
- Create .arc/ directory layout: commits/, bookmarks/, tags/, stashes/, HEAD, config.yml
- Define data model types: Commit, Delta, FileChange, Head, RefTarget with serde derives
- Implement YAML config with local/global resolution and EffectiveConfig merging
- Implement .arcignore/.ignore file parsing
- Add error module with ArcError type
- Wire arc init command to create real repository structure
- Add serde, serde_yaml, rmp-serde dependencies; tempfile dev-dependency
- Add 16 new integration tests across init, config, ignore, and model test files
2026-02-06 18:06:13 +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