Struct jujutsu_lib::view::View
source · [−]pub struct View { /* private fields */ }Implementations
sourceimpl View
impl View
pub fn new(op_store_view: View) -> Self
pub fn checkouts(&self) -> &HashMap<WorkspaceId, CommitId>
pub fn get_checkout(&self, workspace_id: &WorkspaceId) -> Option<&CommitId>
pub fn heads(&self) -> &HashSet<CommitId>
pub fn public_heads(&self) -> &HashSet<CommitId>
pub fn branches(&self) -> &BTreeMap<String, BranchTarget>
pub fn git_refs(&self) -> &BTreeMap<String, RefTarget>
pub fn git_head(&self) -> Option<CommitId>
pub fn set_checkout(&mut self, workspace_id: WorkspaceId, commit_id: CommitId)
pub fn remove_checkout(&mut self, workspace_id: &WorkspaceId)
pub fn add_head(&mut self, head_id: &CommitId)
pub fn remove_head(&mut self, head_id: &CommitId)
pub fn add_public_head(&mut self, head_id: &CommitId)
pub fn remove_public_head(&mut self, head_id: &CommitId)
pub fn get_ref(&self, name: &RefName) -> Option<RefTarget>
pub fn set_or_remove_ref(&mut self, name: RefName, target: Option<RefTarget>)
pub fn get_branch(&self, name: &str) -> Option<&BranchTarget>
pub fn set_branch(&mut self, name: String, target: BranchTarget)
pub fn remove_branch(&mut self, name: &str)
pub fn get_local_branch(&self, name: &str) -> Option<RefTarget>
pub fn set_local_branch(&mut self, name: String, target: RefTarget)
pub fn remove_local_branch(&mut self, name: &str)
pub fn get_remote_branch(
&self,
name: &str,
remote_name: &str
) -> Option<RefTarget>
pub fn set_remote_branch(
&mut self,
name: String,
remote_name: String,
target: RefTarget
)
pub fn remove_remote_branch(&mut self, name: &str, remote_name: &str)
pub fn get_tag(&self, name: &str) -> Option<RefTarget>
pub fn set_tag(&mut self, name: String, target: RefTarget)
pub fn remove_tag(&mut self, name: &str)
pub fn set_git_ref(&mut self, name: String, target: RefTarget)
pub fn remove_git_ref(&mut self, name: &str)
pub fn set_git_head(&mut self, head_id: CommitId)
pub fn clear_git_head(&mut self)
pub fn set_view(&mut self, data: View)
pub fn store_view(&self) -> &View
pub fn store_view_mut(&mut self) -> &mut View
pub fn merge(&mut self, index: IndexRef<'_>, base: &View, other: &View)
pub fn merge_single_ref(
&mut self,
index: IndexRef<'_>,
ref_name: &RefName,
base_target: Option<&RefTarget>,
other_target: Option<&RefTarget>
)
Trait Implementations
impl Eq for View
impl StructuralEq for View
impl StructuralPartialEq for View
Auto Trait Implementations
impl RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnwindSafe for View
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more