Skip to main content

RevListOptions

Struct RevListOptions 

Source
pub struct RevListOptions {
Show 40 fields pub all_refs: bool, pub first_parent: bool, pub ancestry_path: bool, pub ancestry_path_bottoms: Vec<ObjectId>, pub simplify_by_decoration: bool, pub output_mode: OutputMode, pub quiet: bool, pub count: bool, pub skip: usize, pub max_count: Option<usize>, pub ordering: OrderingMode, pub reverse: bool, pub objects: bool, pub no_object_names: bool, pub boundary: bool, pub left_right: bool, pub left_only: bool, pub right_only: bool, pub cherry_mark: bool, pub cherry_pick: bool, pub min_parents: Option<usize>, pub max_parents: Option<usize>, pub symmetric_left: Option<ObjectId>, pub symmetric_right: Option<ObjectId>, pub paths: Vec<String>, pub full_history: bool, pub sparse: bool, pub filter: Option<ObjectFilter>, pub filter_provided_objects: bool, pub filter_print_omitted: bool, pub in_commit_order: bool, pub no_kept_objects: bool, pub missing_action: MissingAction, pub use_bitmap_index: bool, pub unpacked_only: bool, pub bitmap_oid_only_objects: bool, pub until_cutoff: Option<i64>, pub since_cutoff: Option<i64>, pub include_reflog_entries: bool, pub include_indexed_objects: bool,
}
Expand description

Parsed and normalized options for rev-list traversal.

Fields§

§all_refs: bool

Include all refs (--all) as positive tips.

§first_parent: bool

Follow only first parent when walking merges.

§ancestry_path: bool

Enable ancestry-path filtering.

§ancestry_path_bottoms: Vec<ObjectId>

Optional explicit ancestry-path pivot commits.

§simplify_by_decoration: bool

Keep only decorated commits after traversal.

§output_mode: OutputMode

Commit output mode.

§quiet: bool

Suppress commit output.

§count: bool

Print only final count.

§skip: usize

Skip N commits from selected list.

§max_count: Option<usize>

Optional maximum selected commits.

§ordering: OrderingMode

Ordering strategy.

§reverse: bool

Reverse selected output order.

§objects: bool

List reachable objects (trees, blobs) in addition to commits.

§no_object_names: bool

Suppress object path names in –objects output.

§boundary: bool

Show boundary commits with - prefix.

§left_right: bool

Show left/right markers for symmetric diff.

§left_only: bool

Filter to left-only commits in symmetric diff.

§right_only: bool

Filter to right-only commits in symmetric diff.

§cherry_mark: bool

Cherry-mark equivalent commits with = instead of +.

§cherry_pick: bool

Cherry-pick: omit equivalent commits from output.

§min_parents: Option<usize>

Minimum number of parents a commit must have to be included.

§max_parents: Option<usize>

Maximum number of parents a commit may have to be included.

§symmetric_left: Option<ObjectId>

Symmetric-diff left OID (set by caller when A…B is used).

§symmetric_right: Option<ObjectId>

Symmetric-diff right OID (set by caller when A…B is used).

§paths: Vec<String>

Path filters (files after --).

§full_history: bool

Show full history (don’t simplify) for path-limited walks.

§sparse: bool

Sparse mode: don’t prune non-matching commits.

§filter: Option<ObjectFilter>

Object filter for --filter=<spec>.

§filter_provided_objects: bool

When set with --filter, explicitly given revision objects are filtered too.

§filter_print_omitted: bool

Print omitted objects prefixed with ~.

§in_commit_order: bool

Emit objects interleaved with their introducing commit.

§no_kept_objects: bool

Exclude objects in .keep pack files.

§missing_action: MissingAction

Behavior when referenced objects are missing.

§use_bitmap_index: bool

When set with --objects, omit path names from non-commit object lines (bitmap-style output).

§unpacked_only: bool

When set with --objects, list only objects not present in any pack file.

§bitmap_oid_only_objects: bool

With --use-bitmap-index, emit OID-only object lines (no paths / trailing space) for filters that match Git’s bitmap object formatting.

§until_cutoff: Option<i64>

Exclude commits with committer date strictly after this Unix timestamp (--until / --before).

§since_cutoff: Option<i64>

Exclude commits with committer date strictly before this Unix timestamp (--since / --after).

§include_reflog_entries: bool

Include OIDs from all reflogs as extra commit tips (git pack-objects --reflog).

§include_indexed_objects: bool

Include blob OIDs from the index as object roots (git pack-objects --indexed-objects).

Trait Implementations§

Source§

impl Clone for RevListOptions

Source§

fn clone(&self) -> RevListOptions

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RevListOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RevListOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.