Struct jujutsu_lib::repo::ReadonlyRepo[][src]

pub struct ReadonlyRepo { /* fields omitted */ }

Implementations

impl ReadonlyRepo[src]

pub fn init_local(
    settings: &UserSettings,
    wc_path: PathBuf
) -> Arc<ReadonlyRepo>
[src]

pub fn init_internal_git(
    settings: &UserSettings,
    wc_path: PathBuf
) -> Arc<ReadonlyRepo>
[src]

Initializes a repo with a new Git store in .jj/git/ (bare Git repo)

pub fn init_external_git(
    settings: &UserSettings,
    wc_path: PathBuf,
    git_store_path: PathBuf
) -> Arc<ReadonlyRepo>
[src]

Initializes a repo with an existing Git store at the specified path

pub fn load(
    user_settings: &UserSettings,
    wc_path: PathBuf
) -> Result<Arc<ReadonlyRepo>, RepoLoadError>
[src]

pub fn loader(&self) -> RepoLoader[src]

pub fn as_repo_ref(&self) -> RepoRef<'_>[src]

pub fn repo_path(&self) -> &PathBuf[src]

pub fn working_copy_path(&self) -> &PathBuf[src]

pub fn op_id(&self) -> &OperationId[src]

pub fn operation(&self) -> &Operation[src]

pub fn view(&self) -> &ReadonlyView[src]

pub fn evolution(&self) -> Arc<ReadonlyEvolution>[src]

pub fn index(&self) -> &Arc<ReadonlyIndex>[src]

pub fn reindex(&mut self) -> &Arc<ReadonlyIndex>[src]

pub fn working_copy(&self) -> &Arc<Mutex<WorkingCopy>>[src]

pub fn working_copy_locked(&self) -> MutexGuard<'_, WorkingCopy>[src]

pub fn store(&self) -> &Arc<StoreWrapper>[src]

pub fn op_store(&self) -> &Arc<dyn OpStore>[src]

pub fn op_heads_store(&self) -> &Arc<OpHeadsStore>[src]

pub fn index_store(&self) -> &Arc<IndexStore>[src]

pub fn settings(&self) -> &RepoSettings[src]

pub fn start_transaction(
    self: &Arc<ReadonlyRepo>,
    description: &str
) -> Transaction
[src]

pub fn reload(&self) -> Result<Arc<ReadonlyRepo>, RepoLoadError>[src]

pub fn reload_at(
    &self,
    operation: &Operation
) -> Result<Arc<ReadonlyRepo>, RepoLoadError>
[src]

Trait Implementations

impl Debug for ReadonlyRepo[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V