Skip to main content

RevListResult

Struct RevListResult 

Source
pub struct RevListResult {
Show 13 fields pub commits: Vec<ObjectId>, pub objects: Vec<(ObjectId, String)>, pub omitted_objects: Vec<ObjectId>, pub missing_objects: Vec<ObjectId>, pub boundary_commits: Vec<ObjectId>, pub left_right_map: HashMap<ObjectId, bool>, pub cherry_equivalent: HashSet<ObjectId>, pub per_commit_object_counts: Vec<usize>, pub object_walk_tips: Vec<ObjectId>, pub objects_print_commit: Vec<bool>, pub object_segments: Vec<Vec<(ObjectId, String)>>, pub bitmap_object_format: bool, pub tip_annotated_tag_by_commit: HashMap<ObjectId, ObjectId>,
}
Expand description

Final commit selection result.

Fields§

§commits: Vec<ObjectId>

Selected commits in final output order, after skip/max/reverse.

§objects: Vec<(ObjectId, String)>

Reachable non-commit objects when --objects is active. Each entry is (oid, optional_path).

§omitted_objects: Vec<ObjectId>

Objects omitted by --filter (for --filter-print-omitted).

§missing_objects: Vec<ObjectId>

Referenced objects missing from the object database.

§boundary_commits: Vec<ObjectId>

Boundary commits (excluded parents shown with - prefix).

§left_right_map: HashMap<ObjectId, bool>

For --left-right: mapping commit OID -> true=left, false=right.

§cherry_equivalent: HashSet<ObjectId>

For --cherry-mark: set of commits that are equivalent (patch-id match).

§per_commit_object_counts: Vec<usize>

Per-commit object counts (parallel to commits) for --in-commit-order. When non-empty, objects[sum(counts[..i])..sum(counts[..=i])] are the objects introduced by commits[i].

§object_walk_tips: Vec<ObjectId>

Commit OIDs given as positive revision tips (for Git USER_GIVEN / filter edge cases).

§objects_print_commit: Vec<bool>

When --objects is active, whether to print the commit line before that commit’s objects. Aligns with Git marking user-given tips vs NOT_USER_GIVEN commits in list-objects.

§object_segments: Vec<Vec<(ObjectId, String)>>

When --objects is active and not --in-commit-order, objects grouped per commit walk plus a final segment for explicit object_roots (length commits.len() + 1).

§bitmap_object_format: bool

True when --use-bitmap-index --objects should format trees/blobs as bare OIDs (no paths).

§tip_annotated_tag_by_commit: HashMap<ObjectId, ObjectId>

When a positive spec named a ref to an annotated tag of a commit, maps peeled commit → tag OID.

Trait Implementations§

Source§

impl Clone for RevListResult

Source§

fn clone(&self) -> RevListResult

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 RevListResult

Source§

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

Formats the value using the given formatter. 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.