ReadonlyRepo

Struct ReadonlyRepo 

Source
pub struct ReadonlyRepo { /* private fields */ }

Implementations§

Source§

impl ReadonlyRepo

Source

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

Source

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

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

Source

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

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

Source

pub fn load(user_settings: &UserSettings, wc_path: PathBuf) -> Arc<ReadonlyRepo>

Source

pub fn repo_path(&self) -> &PathBuf

Source

pub fn working_copy_path(&self) -> &PathBuf

Source

pub fn index(&self) -> Arc<IndexFile>

Source

pub fn reindex(&mut self) -> Arc<IndexFile>

Source

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

Source

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

Source

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

Source

pub fn settings(&self) -> &RepoSettings

Source

pub fn start_transaction(&self, description: &str) -> Transaction<'_>

Source

pub fn reload(&mut self)

Source

pub fn reload_at(&mut self, operation: &Operation)

Trait Implementations§

Source§

impl Debug for ReadonlyRepo

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Repo for ReadonlyRepo

Source§

fn store(&self) -> &Arc<StoreWrapper>

Source§

fn view(&self) -> &dyn View

Source§

fn evolution(&self) -> &dyn Evolution

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> ErasedDestructor for T
where T: 'static,