Revisit `radicle::git::raw`
Capture all git2 re-exports
A refactoring internal to the radicle crate, with the goal of
making dependency on git2 clearer and more controlled.
radicle::git::raw is changed from a complete re-export of git2
to a module that selectively re-exports (many) members of git2.
In the future, no more use git2::… statements should be added
outside of crates/radicle/src/git/raw.rs. This is in an effort to
decrease dependence on git2 in the future.
Introduce trait ErrorExt
This extension trait is more ergonomic than what radicle-git-ext
provides.
28 files changed
+374
-248
63305904
→
ea562215
modified crates/radicle-cli/src/commands/init.rs
@@ -13,6 +13,7 @@ use serde_json as json;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -189,7 +190,7 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/patch/checkout.rs
@@ -3,6 +3,7 @@ use anyhow::anyhow;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -73,7 +74,7 @@ pub fn run(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -128,7 +129,7 @@ fn find_patch_commit<'a>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/watch.rs
@@ -4,6 +4,7 @@ use std::{thread, time};
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -169,7 +170,7 @@ fn reference<R: ReadRepository>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-fetch/src/git/repository.rs
@@ -1,6 +1,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -53,7 +54,7 @@ fn find_and_peel(repo: &Repository, oid: Oid) -> Result<Oid, error::Ancestry> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/cob/identity.rs
@@ -126,7 +126,7 @@ pub enum ApplyError {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/cob/op.rs
@@ -21,7 +21,7 @@ pub enum OpEncodingError {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/cob/stream.rs
@@ -8,6 +8,7 @@ use std::marker::PhantomData;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -92,7 +93,7 @@ impl HasRoot for CobRange {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -101,7 +102,7 @@ pub struct Stream<'a, A> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -185,7 +186,7 @@ mod tests {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -213,7 +214,7 @@ mod tests {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/cob/stream/error.rs
@@ -22,7 +22,7 @@ impl Stream {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/cob/stream/iter.rs
@@ -39,7 +39,7 @@ impl From<PatternString> for Until {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -47,7 +47,7 @@ pub(super) struct WalkIter<'a> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -76,10 +76,10 @@ impl Walk {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -97,7 +97,7 @@ impl Walk {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/git.rs
@@ -1,4 +1,5 @@
|
|
| + | |
|
|
|
|
|
@@ -16,11 +17,9 @@ use crate::storage;
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -31,6 +30,8 @@ pub use radicle_git_ext as ext;
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -173,13 +174,13 @@ pub enum RefError {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -189,7 +190,7 @@ pub mod refs {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -462,9 +463,9 @@ pub mod refs {
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -557,9 +558,9 @@ where
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -570,13 +571,13 @@ pub fn initial_commit<'a>(
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -585,12 +586,12 @@ pub fn commit<'a>(
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -599,7 +600,7 @@ pub fn empty_commit<'a>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -609,8 +610,8 @@ pub fn head(repo: &git2::Repository) -> Result<git2::Commit, git2::Error> {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -624,7 +625,7 @@ pub fn write_tree<'r>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -652,11 +653,11 @@ pub fn configure_repository(repo: &git2::Repository) -> Result<(), git2::Error>
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -679,14 +680,14 @@ pub fn configure_remote<'r>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -694,10 +695,10 @@ pub fn fetch(repo: &git2::Repository, remote: &str) -> Result<(), git2::Error> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -719,11 +720,11 @@ pub fn push<'a>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -733,14 +734,14 @@ pub fn set_upstream(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -752,14 +753,14 @@ pub fn set_upstream(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/git/canonical/effects.rs
@@ -1,6 +1,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -167,7 +168,7 @@ pub struct GraphDescendant {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -183,7 +184,7 @@ impl FindMergeBase for git2::Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -199,7 +200,7 @@ impl Ancestry for git2::Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -215,7 +216,7 @@ impl FindObjects for git2::Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -235,7 +236,7 @@ impl FindObjects for git2::Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/git/canonical/rules.rs
@@ -780,7 +780,7 @@ mod tests {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
added crates/radicle/src/git/raw.rs
@@ -0,0 +1,58 @@
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified crates/radicle/src/identity/doc.rs
@@ -22,6 +22,7 @@ use crate::crypto;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -54,7 +55,7 @@ pub enum DocError {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -71,9 +72,8 @@ impl DocError {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -687,7 +687,7 @@ impl Doc {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -830,7 +830,7 @@ impl Doc {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -843,7 +843,7 @@ impl Doc {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1157,10 +1157,13 @@ mod test {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle/src/identity/doc/id.rs
@@ -13,7 +13,7 @@ pub const RAD_PREFIX: &str = "rad:";
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -102,8 +102,8 @@ impl From<git::Oid> for RepoId {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle/src/profile.rs
@@ -88,7 +88,7 @@ pub mod env {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/rad.rs
@@ -39,7 +39,7 @@ pub enum InitError {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -48,7 +48,7 @@ pub enum InitError {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -96,7 +96,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -152,7 +152,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -236,7 +236,7 @@ pub enum CheckoutError {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -253,19 +253,19 @@ pub fn checkout<P: AsRef<Path>, S: storage::ReadStorage>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -335,7 +335,7 @@ pub fn checkout<P: AsRef<Path>, S: storage::ReadStorage>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -347,9 +347,9 @@ pub enum RemoteError {
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -362,9 +362,9 @@ pub fn remote(repo: &git2::Repository) -> Result<(git2::Remote<'_>, RepoId), Rem
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -380,7 +380,7 @@ pub enum CwdError {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -395,7 +395,7 @@ pub enum CwdError {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -404,23 +404,23 @@ pub fn cwd() -> Result<(git2::Repository, RepoId), CwdError> {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -428,7 +428,7 @@ pub fn repo() -> Result<git2::Repository, git2::Error> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -438,7 +438,7 @@ pub enum JujutsuGitRootError {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -450,7 +450,7 @@ pub fn repo_jj_git_root() -> Result<git2::Repository, JujutsuGitRootError> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/schemars_ext.rs
@@ -94,12 +94,12 @@ pub(crate) mod git {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/storage.rs
@@ -16,6 +16,7 @@ pub use radicle_git_ext::Oid;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -133,9 +134,9 @@ pub enum RepositoryError {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -153,7 +154,7 @@ pub enum Error {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -167,7 +168,7 @@ impl Error {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -179,7 +180,7 @@ impl Error {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -503,16 +504,20 @@ pub trait ReadRepository: Sized + ValidateRepository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -572,18 +577,18 @@ pub trait ReadRepository: Sized + ValidateRepository {
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -692,7 +697,7 @@ pub trait WriteRepository: ReadRepository + SignRepository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/storage/git.rs
@@ -14,6 +14,7 @@ use std::{fs, io};
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -56,10 +57,10 @@ pub struct Ref {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -279,7 +280,7 @@ pub struct Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -380,12 +381,12 @@ pub enum Validation {
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -394,9 +395,9 @@ impl Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -506,7 +507,7 @@ impl Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -539,7 +540,7 @@ impl Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -556,7 +557,7 @@ impl Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -652,7 +653,7 @@ impl ReadRepository for Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -660,7 +661,7 @@ impl ReadRepository for Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -674,7 +675,7 @@ impl ReadRepository for Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -682,7 +683,7 @@ impl ReadRepository for Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -698,13 +699,13 @@ impl ReadRepository for Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -817,7 +818,7 @@ impl ReadRepository for Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -936,7 +937,7 @@ impl WriteRepository for Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -986,7 +987,7 @@ pub mod trailers {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1097,7 +1098,7 @@ mod tests {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/storage/git/cob.rs
@@ -33,7 +33,7 @@ pub enum ObjectsError {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -43,7 +43,7 @@ pub enum TypesError {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -55,12 +55,12 @@ pub enum TypesError {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -91,8 +91,8 @@ impl change::Storage for Repository {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -200,12 +200,12 @@ impl<'a, R> DraftStore<'a, R> {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -274,7 +274,7 @@ impl<R: storage::ReadRepository> ReadRepository for DraftStore<'_, R> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -290,11 +290,11 @@ impl<R: storage::ReadRepository> ReadRepository for DraftStore<'_, R> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -310,7 +310,7 @@ impl<R: storage::ReadRepository> ReadRepository for DraftStore<'_, R> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -322,7 +322,7 @@ impl<R: storage::ReadRepository> ReadRepository for DraftStore<'_, R> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -381,8 +381,8 @@ impl<R: storage::ReadRepository> ReadRepository for DraftStore<'_, R> {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle/src/storage/git/transport/local.rs
@@ -7,6 +7,7 @@ use std::process;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -25,20 +26,19 @@ struct Local {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -46,7 +46,9 @@ impl git2::transport::SmartSubtransport for Local {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -61,7 +63,7 @@ impl git2::transport::SmartSubtransport for Local {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -71,19 +73,19 @@ impl git2::transport::SmartSubtransport for Local {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -103,8 +105,8 @@ pub fn register(storage: Storage) {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle/src/storage/git/transport/remote/mock.rs
@@ -8,6 +8,7 @@ use std::thread::ThreadId;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -19,19 +20,21 @@ static NODES: LazyLock<Mutex<HashMap<(ThreadId, RemoteId), PathBuf>>> =
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -39,7 +42,7 @@ impl git2::transport::SmartSubtransport for MockTransport {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -76,7 +79,7 @@ impl git2::transport::SmartSubtransport for MockTransport {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -86,8 +89,8 @@ pub fn register(node: &RemoteId, path: &Path) {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle/src/storage/refs.rs
@@ -14,6 +14,7 @@ use thiserror::Error;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -55,7 +56,7 @@ pub enum Error {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -64,9 +65,8 @@ impl Error {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -322,8 +322,8 @@ impl SignedRefs<Verified> {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -334,13 +334,13 @@ impl SignedRefs<Verified> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -430,7 +430,7 @@ impl SignedRefsAt {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -471,7 +471,7 @@ pub mod canonical {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -581,7 +581,7 @@ mod tests {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/test.rs
@@ -6,6 +6,7 @@ pub mod storage;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -22,13 +23,13 @@ pub fn fetch<W: WriteRepository>(
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -295,22 +296,22 @@ pub mod setup {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/test/fixtures.rs
@@ -72,7 +72,15 @@ pub fn project<P, G>(
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -94,19 +102,19 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -114,17 +122,21 @@ pub fn bare_repository<P: AsRef<Path>>(path: P) -> (git2::Repository, git2::Oid)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -149,10 +161,14 @@ fn repository_with<P: AsRef<Path>>(
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -166,19 +182,28 @@ pub fn commit(msg: &str, parents: &[git2::Oid], repo: &git2::Repository) -> git:
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -198,7 +223,7 @@ pub fn populate(repo: &git2::Repository, scale: usize) -> Vec<git::Qualified> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -241,13 +266,13 @@ pub mod gen {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/test/storage.rs
@@ -199,7 +199,7 @@ impl ReadRepository for MockRepository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -215,17 +215,17 @@ impl ReadRepository for MockRepository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -236,7 +236,7 @@ impl ReadRepository for MockRepository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -244,7 +244,7 @@ impl ReadRepository for MockRepository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -252,7 +252,7 @@ impl ReadRepository for MockRepository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -322,7 +322,7 @@ impl ReadRepository for MockRepository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified flake.nix
@@ -176,25 +176,46 @@
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|