mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-16 08:10:40 +08:00
cb2d83daae7149c0077a92f8ea9a94923ba65f21
To wire up radicle-cob, it is necessary to implement the traits for the following types: * `Repository`: `change::Storage`, `object::Storage`, and `Store` * `project::Identity`: `identity::Identity` For `Repository`, the `change::Storage` implementation is trivial, as it uses the underlying `git2::Repository` implementation. Then `object::Storage` simply defines the required references names and does lookups or updates. The aforementioned reference naming scheme is: refs/namespaces/<ns>/refs/cobs/<typename>/<object_id> For `project::Identity`, the `identity::Identity` implementation is straight-forward. To finalise the work, a simplified API is exposed as `radicle::cob` where the `create`, `update`, `get`, and `list` functions are redefined in terms of `radicle` specific types. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett
❤️🪵
Radicle Heartwood Protocol & Stack
Languages
Rust
97.8%
Shell
0.5%
CUE
0.4%
Nix
0.3%
Just
0.3%
Other
0.6%