pub struct Discarded {
pub name: String,
pub forked_at: CommitId,
pub commits: u64,
}Expand description
A branch that was discarded: what is left to say about it once its commits are gone.
Discarding frees every commit only that branch could reach, so the commit graph keeps no trace of it (DESIGN §4.2). This is the one thing that does, for display: the name, where it forked from and how far it got. It is rebuilt by replaying the log, because the log already records both the branch’s creation and its discard, and it takes no part in any commit id.
Fields§
§name: StringThe name it had.
forked_at: CommitIdThe commit it was forked from, which is still on some other branch.
commits: u64How many commits it had made on top of that.
Trait Implementations§
impl Eq for Discarded
impl StructuralPartialEq for Discarded
Auto Trait Implementations§
impl Forget for Discarded
impl Freeze for Discarded
impl Move for Discarded
impl RefUnwindSafe for Discarded
impl Send for Discarded
impl Sync for Discarded
impl Unpin for Discarded
impl UnsafeUnpin for Discarded
impl UnwindSafe for Discarded
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