mirror of
https://github.com/Dasemu/Grove.git
synced 2026-11-26 23:36:11 +00:00
feat(core): add git runner, snapshots and state classification
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5b3737ad3b
commit
753bd2c267
10 files changed
+462
-2
No files matched your search
@@ -4,13 +4,13 @@
|
||||
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 not started**: only spike scripts and docs exist. Do not start a
|
||||
**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
|
||||
new phase before its predecessor's results are written to `docs/`.
|
||||
|
||||
## Commands
|
||||
- Check shell scripts: `for f in spikes/*.sh; do bash -n "$f"; done`
|
||||
- Throwaway Forgejo (dev only, Podman): `spikes/forgejo-up.sh`, then `spikes/phase0.sh`
|
||||
- Once the Rust workspace exists: `cargo fmt --check`, `cargo clippy -- -D warnings`, `cargo test`
|
||||
- Rust: `cargo fmt --check`, `cargo clippy --all-targets -- -D warnings`, `cargo test`
|
||||
|
||||
## Architecture
|
||||
See `docs/` (`phase0-spike.md`, `DECISIONS.md`). Git is the storage layer; shell out to
|
||||
@@ -18,6 +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.
|
||||
- Everything in the repo is English. Open questions go to `docs/DECISIONS.md`.
|
||||
- Never destroy local work; divergence is surfaced, never auto-merged.
|
||||
|
||||
|
||||
Reference in new issue
Block a user