Struct jujutsu_lib::repo::ReadonlyRepo
source · [−]pub struct ReadonlyRepo { /* private fields */ }Implementations
sourceimpl ReadonlyRepo
impl ReadonlyRepo
pub fn init_local(
settings: &UserSettings,
repo_path: PathBuf
) -> Arc<ReadonlyRepo>
sourcepub fn init_internal_git(
settings: &UserSettings,
repo_path: PathBuf
) -> Arc<ReadonlyRepo>
pub fn init_internal_git(
settings: &UserSettings,
repo_path: PathBuf
) -> Arc<ReadonlyRepo>
Initializes a repo with a new Git backend in .jj/git/ (bare Git repo)
sourcepub fn init_external_git(
settings: &UserSettings,
repo_path: PathBuf,
git_repo_path: PathBuf
) -> Arc<ReadonlyRepo>
pub fn init_external_git(
settings: &UserSettings,
repo_path: PathBuf,
git_repo_path: PathBuf
) -> Arc<ReadonlyRepo>
Initializes a repo with an existing Git backend at the specified path
pub fn load(
user_settings: &UserSettings,
repo_path: PathBuf
) -> Arc<ReadonlyRepo>
pub fn loader(&self) -> RepoLoader
pub fn as_repo_ref(&self) -> RepoRef<'_>
pub fn repo_path(&self) -> &PathBuf
pub fn op_id(&self) -> &OperationId
pub fn operation(&self) -> &Operation
pub fn view(&self) -> &View
pub fn index(&self) -> &Arc<ReadonlyIndex>
pub fn reindex(&mut self) -> &Arc<ReadonlyIndex>
pub fn store(&self) -> &Arc<Store>
pub fn op_store(&self) -> &Arc<dyn OpStore>
pub fn op_heads_store(&self) -> &Arc<OpHeadsStore>
pub fn index_store(&self) -> &Arc<IndexStore>
pub fn settings(&self) -> &RepoSettings
pub fn start_transaction(
self: &Arc<ReadonlyRepo>,
description: &str
) -> Transaction
pub fn reload(&self) -> Arc<ReadonlyRepo>
pub fn reload_at(&self, operation: &Operation) -> Arc<ReadonlyRepo>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ReadonlyRepo
impl Send for ReadonlyRepo
impl Sync for ReadonlyRepo
impl Unpin for ReadonlyRepo
impl !UnwindSafe for ReadonlyRepo
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