pub struct RevListOptions {
pub min_parents: Option<usize>,
pub max_parents: Option<usize>,
pub since: Option<i64>,
pub until: Option<i64>,
}Expand description
Revision listing options (for list_revisions_with).
All filters are AND-ed together. Following git-rev-list semantics, filters come in two
kinds:
-
Traversal filters prune the traversal: a filtered-out commit is not listed, and none of its ancestors are visited (nor listed, unless reachable via another path). The only traversal filter is since.
-
Output filters only affect which commits are listed: traversal continues through filtered-out commits, so their ancestors are still visited and listed. For example,
max_parents: 1lists all non-merge ancestors, including those reachable only through merges. Output filters are min_parents, max_parents, and until.
All timestamps are specified as seconds since the UNIX epoch. All time-based filters apply to committer date by default (rather than author date). Revisions with no known committer date pass all time-based filters (i.e., they are never filtered out by since or until).
Fields§
§min_parents: Option<usize>Only list revisions with at least this amount of “parents” (i.e., successors in the forward graph).
max_parents: Option<usize>Only list revisions with at most this amount of “parents” (i.e., successors in the forward graph).
since: Option<i64>Only list revisions more recent (or equal) than this timestamp (and stop traversal).
until: Option<i64>Only list revisions older (or equal) than this timestamp (without stopping traversal).
Trait Implementations§
Source§impl Default for RevListOptions
impl Default for RevListOptions
Source§fn default() -> RevListOptions
fn default() -> RevListOptions
Auto Trait Implementations§
impl Freeze for RevListOptions
impl RefUnwindSafe for RevListOptions
impl Send for RevListOptions
impl Sync for RevListOptions
impl Unpin for RevListOptions
impl UnsafeUnpin for RevListOptions
impl UnwindSafe for RevListOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more