mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-11-21 10:30:43 +08:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user