Documentation
¶
Overview ¶
Package sync implements git-based team plan sharing and merging. It pushes .cloop/state.json and .cloop/plan-history/ to a configured git remote branch and pulls/merges remote state.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Pull ¶
Pull fetches the remote branch and performs a three-way merge of the remote plan with the local plan:
- Local in_progress tasks are preserved unchanged.
- Remote done/failed status is accepted for tasks that exist locally.
- Pending tasks that exist only on the remote are unioned in.
Returns the merged plan (the caller must persist it). Returns nil, nil if the remote branch has no state.
Types ¶
Click to show internal directories.
Click to hide internal directories.