feat: add config loading, worktree inspection and CLI status/snapshot

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Sonnet 5.5 committed 2026-11-16 12:00:28 +01:00
1 parent 753bd2c267
commit 5291c3e671
10 files changed
+844 -4

No files matched your search

+2 -2
View File
@@ -4,7 +4,7 @@
Linux tool that keeps chosen git repos continuously in sync across machines, including
uncommitted work, via snapshot refs (`refs/sync/<machine>/<branch>`) on a primary remote.
Planned as a Rust workspace (core, providers, daemon, CLI, Tauri GUI). Currently in
**Phase 0 done, Phase 1 in progress**: `gitsync-core` has the git runner, snapshots and state classification; config, migration, receive logic, CLI are pending. Do not start a
**Phase 0 done, Phase 1 in progress**: `gitsync-core` has the git runner, snapshots and state classification; config loading, worktree inspection and a minimal CLI (`status`, `snapshot`) exist; migration (`add`), receive logic, `doctor` and two-machine tests are pending. Do not start a
new phase before its predecessor's results are written to `docs/`.
## Commands
@@ -18,7 +18,7 @@ system `git`; snapshots use a temp `GIT_INDEX_FILE` + `commit-tree`, never touch
user's branch or index.
## Conventions
- `gitsync-core` has no external dependencies yet; ask before adding any.
- Dependencies: serde+toml (config), clap+anyhow (CLI), approved. Ask before adding more.
- Everything in the repo is English. Open questions go to `docs/DECISIONS.md`.
- Never destroy local work; divergence is surfaced, never auto-merged.