Struct jujutsu_lib::commit::Commit
source · pub struct Commit { /* private fields */ }Implementations§
source§impl Commit
impl Commit
pub fn new(store: Arc<Store>, id: CommitId, data: Arc<Commit>) -> Self
pub fn store(&self) -> &Arc<Store>
pub fn id(&self) -> &CommitId
pub fn parent_ids(&self) -> &[CommitId]
pub fn parents(&self) -> Vec<Commit> ⓘ
pub fn predecessor_ids(&self) -> &[CommitId]
pub fn predecessors(&self) -> Vec<Commit> ⓘ
pub fn tree(&self) -> Tree
pub fn tree_id(&self) -> &TreeId
pub fn change_id(&self) -> &ChangeId
pub fn store_commit(&self) -> &Commit
pub fn is_empty(&self) -> bool
pub fn description(&self) -> &str
pub fn committer(&self) -> &Signature
Trait Implementations§
source§impl Ord for Commit
impl Ord for Commit
source§impl PartialOrd<Commit> for Commit
impl PartialOrd<Commit> for Commit
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more