pub struct RefQuery {
pub namespaces: Vec<RefNamespace>,
pub patterns: Vec<String>,
pub sort: RefSort,
pub limit: Option<usize>,
pub contains: Vec<ObjectId>,
pub no_contains: Vec<ObjectId>,
pub merged: Vec<ObjectId>,
pub no_merged: Vec<ObjectId>,
pub points_at: Vec<ObjectId>,
}Expand description
Filters and ordering for a ref listing query.
Fields§
§namespaces: Vec<RefNamespace>Namespaces to scan (union). When empty, defaults to RefNamespace::Heads.
patterns: Vec<String>Glob patterns matched against the short ref name; empty means no pattern filter.
sort: RefSortSort key and direction.
limit: Option<usize>Maximum number of refs to return after sorting (None = unlimited).
contains: Vec<ObjectId>Keep refs whose peeled commit contains every listed commit (--contains).
no_contains: Vec<ObjectId>Exclude refs whose peeled commit contains any listed commit (--no-contains).
merged: Vec<ObjectId>Keep branch tips merged into every listed commit (--merged).
no_merged: Vec<ObjectId>Exclude branch tips merged into any listed commit (--no-merged).
points_at: Vec<ObjectId>Keep refs whose oid or tag peel chain matches any listed object (--points-at).
Trait Implementations§
impl Eq for RefQuery
impl StructuralPartialEq for RefQuery
Auto Trait Implementations§
impl Freeze for RefQuery
impl RefUnwindSafe for RefQuery
impl Send for RefQuery
impl Sync for RefQuery
impl Unpin for RefQuery
impl UnsafeUnpin for RefQuery
impl UnwindSafe for RefQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more