pub struct TargetComparison {
pub branch: String,
pub base: ComparisonBase,
pub ahead: usize,
pub behind: usize,
pub newest_ahead: Vec<ObjectId>,
pub newest_behind: Vec<ObjectId>,
}Expand description
Ahead-of-target view of the current branch (grit shortlog / grit ahead).
Fields§
§branch: StringCurrent branch short name.
base: ComparisonBaseResolved comparison base (explicit, configured, or default target).
ahead: usizeCommits reachable from the branch tip but not from the base (full count).
behind: usizeCommits reachable from the base but not from the branch tip (full count).
newest_ahead: Vec<ObjectId>Newest commits in the ahead set (newest first), up to the requested limit.
newest_behind: Vec<ObjectId>Newest commits in the behind set when TargetComparisonOptions::include_behind is set.
Trait Implementations§
Source§impl Clone for TargetComparison
impl Clone for TargetComparison
Source§impl Debug for TargetComparison
impl Debug for TargetComparison
impl Eq for TargetComparison
Source§impl PartialEq for TargetComparison
impl PartialEq for TargetComparison
impl StructuralPartialEq for TargetComparison
Auto Trait Implementations§
impl Freeze for TargetComparison
impl RefUnwindSafe for TargetComparison
impl Send for TargetComparison
impl Sync for TargetComparison
impl Unpin for TargetComparison
impl UnsafeUnpin for TargetComparison
impl UnwindSafe for TargetComparison
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.