pub struct ReadonlyRepo { /* private fields */ }Implementations§
Source§impl ReadonlyRepo
impl ReadonlyRepo
pub fn init_local( settings: &UserSettings, wc_path: PathBuf, ) -> Arc<ReadonlyRepo>
Sourcepub fn init_internal_git(
settings: &UserSettings,
wc_path: PathBuf,
) -> Arc<ReadonlyRepo>
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)
Sourcepub fn init_external_git(
settings: &UserSettings,
wc_path: PathBuf,
git_store_path: PathBuf,
) -> Arc<ReadonlyRepo>
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
pub fn load(user_settings: &UserSettings, wc_path: PathBuf) -> Arc<ReadonlyRepo>
pub fn repo_path(&self) -> &PathBuf
pub fn working_copy_path(&self) -> &PathBuf
pub fn index(&self) -> Arc<IndexFile>
pub fn reindex(&mut self) -> Arc<IndexFile>
pub fn working_copy(&self) -> &Arc<Mutex<WorkingCopy>>
pub fn working_copy_locked(&self) -> MutexGuard<'_, WorkingCopy>
pub fn store(&self) -> &Arc<StoreWrapper>
pub fn settings(&self) -> &RepoSettings
pub fn start_transaction(&self, description: &str) -> Transaction<'_>
pub fn reload(&mut self)
pub fn reload_at(&mut self, operation: &Operation)
Trait Implementations§
Source§impl Debug for ReadonlyRepo
impl Debug for ReadonlyRepo
Auto Trait Implementations§
impl !Freeze for ReadonlyRepo
impl !RefUnwindSafe for ReadonlyRepo
impl Send for ReadonlyRepo
impl Sync for ReadonlyRepo
impl Unpin for ReadonlyRepo
impl !UnwindSafe for ReadonlyRepo
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