sapphire-sync
Git-based workspace synchronisation library for sapphire-journal.
What this crate provides
SyncBackendtrait — abstraction over sync strategies- Git backend (feature:
git) — commit, pull, and push changes viagit2 - Config types —
SyncConfigandSyncBackendKindinsapphire_sync::config
Features
| Feature | Default | Description |
|---|---|---|
git |
yes | Git-based sync via git2 |
Configuration
[]
= "auto" # "auto" | "git" | "none"
= "origin"
= "main"
backend = "auto" (default) enables git sync when the workspace is inside a git repository and falls back to no-op otherwise.
License
MIT OR Apache-2.0