radicle-git-ext: merge in git-commit

Removed `mod references` and its uses in `radicle-macros` and
`radicle-git-types` crates.

Signed-off-by: Han Xu <keepsimple@gmail.com>
This commit is contained in:
Han Xu
2023-02-19 18:43:55 -08:00
parent a3a63e4d45
commit c844605121
24 changed files with 890 additions and 2169 deletions
-7
View File
@@ -5,7 +5,6 @@
use std::path::Path;
use git_ext as ext;
use git_ref_format::refspec::PatternString;
pub trait Pattern {
@@ -27,12 +26,6 @@ impl Pattern for globset::GlobSet {
#[derive(Clone, Debug)]
pub struct RefspecMatcher(globset::GlobMatcher);
impl From<ext::RefspecPattern> for RefspecMatcher {
fn from(pat: ext::RefspecPattern) -> Self {
Self(globset::Glob::new(pat.as_str()).unwrap().compile_matcher())
}
}
impl From<PatternString> for RefspecMatcher {
fn from(pat: PatternString) -> Self {
Self(globset::Glob::new(pat.as_str()).unwrap().compile_matcher())