mirror of
https://github.com/Dasemu/Grove.git
synced 2026-11-26 07:16:11 +00:00
docs: record phase 1 validation on the real Gitea
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c935d779e1
commit
15df527064
2 files changed
+22
-1
No files matched your search
@@ -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 implemented (pending real two-PC validation and review)**: `grove-core` + `grove` CLI (`status`, `snapshot`, `add`, `sync`, `doctor`); daemon, GUI and providers do not exist yet. Do not start a
|
||||
**Phase 0 done, Phase 1 implemented and validated against the real Gitea with two simulated machines (real two-PC run still pending)**: `grove-core` + `grove` CLI (`status`, `snapshot`, `add`, `sync`, `doctor`); daemon, GUI and providers do not exist yet. Do not start a
|
||||
new phase before its predecessor's results are written to `docs/`.
|
||||
|
||||
## Commands
|
||||
|
||||
@@ -61,3 +61,24 @@ they may only contain letters, digits, `-` and `_`.
|
||||
- Daemon, file watching, scheduling, IPC (Phase 2). Locking against concurrent user git commands.
|
||||
- Migration of repos with submodules or existing linked worktrees; `new` and provider code (Phase 4).
|
||||
- Resolve actions for `Diverged` (Phase 5): today it is only detected and left intact.
|
||||
|
||||
## Validation on the real Gitea (2026-11-16)
|
||||
|
||||
Two simulated machines (`pca` as a plain clone, `pcb` migrated with `grove add`) against a
|
||||
throwaway private repo on git.zenvairo.es (Gitea 1.25.4, HTTPS), deleted afterwards. All via the
|
||||
`grove` binary:
|
||||
|
||||
| Scenario | Result |
|
||||
|---|---|
|
||||
| `add` on a plain clone | Migrated, backup tar + ref created |
|
||||
| Uncommitted + untracked work on A, `sync` on both | Snapshot pushed to `refs/sync/pca/main`, applied on B |
|
||||
| B has local edits when A's work arrives | `BehindDirty`, local edits untouched, snapshot declined |
|
||||
| A commits and pushes, B clean | B fast-forwarded |
|
||||
| Branch created then deleted upstream | Worktree materialized, then archived with a backup ref |
|
||||
| B has an unpushed commit, A pushes | `Diverged`, nothing modified |
|
||||
|
||||
Not covered: real two-PC run (same code paths, but different machines/filesystems), push-mirror
|
||||
exclusion of `refs/sync/*` on this Gitea (needs a mirror target and credentials).
|
||||
|
||||
Observed UX noise: a stale snapshot from another machine is reported as "not applied" on every
|
||||
pass until that machine syncs again.
|
||||
Reference in new issue
Block a user