blob: ed7dc0460c770f601d746b4dd139f1e9fa0dc841 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
pub trait Sealed {}
impl Sealed for gix_ref::Reference {}
/// Extensions for [revision specifications][gix_revision::Spec].
pub trait RevSpecExt {
/// Attach [`Repository`][crate::Repository] to the given rev-spec.
fn attach(self, repo: &crate::Repository) -> crate::revision::Spec<'_>;
}
impl RevSpecExt for gix_revision::Spec {
fn attach(self, repo: &crate::Repository) -> crate::revision::Spec<'_> {
crate::revision::Spec {
inner: self,
first_ref: None,
second_ref: None,
repo,
}
}
}
|