pub struct WorkspaceHead {
pub commit: ObjectId,
pub branches: Vec<String>,
}Expand description
One head merged into a GitButlerWorkspace.
Fields§
§commit: ObjectIdThe merged commit (a parent of the workspace commit).
branches: Vec<String>Short names of the local branches that point at Self::commit, sorted, leaving out
GitButler’s own gitbutler/* branches. Empty when no branch points there.
Trait Implementations§
Source§impl Clone for WorkspaceHead
impl Clone for WorkspaceHead
Source§impl Debug for WorkspaceHead
impl Debug for WorkspaceHead
impl Eq for WorkspaceHead
Source§impl PartialEq for WorkspaceHead
impl PartialEq for WorkspaceHead
impl StructuralPartialEq for WorkspaceHead
Auto Trait Implementations§
impl Freeze for WorkspaceHead
impl RefUnwindSafe for WorkspaceHead
impl Send for WorkspaceHead
impl Sync for WorkspaceHead
impl Unpin for WorkspaceHead
impl UnsafeUnpin for WorkspaceHead
impl UnwindSafe for WorkspaceHead
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.