radicle: separate repository validation

Make the validation logic customisable by extracting it out into a
separate trait that can be defined by other crates.

The Repository validation logic stays the same.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
This commit is contained in:
Fintan Halpenny
2023-11-06 12:06:13 +01:00
committed by cloudhead
parent b503aa6be4
commit 75b52e28b2
18 changed files with 136 additions and 106 deletions
+1
View File
@@ -3,6 +3,7 @@ use radicle::cob::patch::{Patch, PatchId, Patches, Verdict};
use radicle::prelude::*;
use radicle::profile::Profile;
use radicle::storage::git::Repository;
use radicle::storage::RemoteRepository as _;
use crate::terminal as term;
use term::format::Author;