Struct jujutsu_lib::git_backend::GitBackend
source · [−]pub struct GitBackend { /* private fields */ }Implementations
sourceimpl GitBackend
impl GitBackend
pub fn init_internal(store_path: PathBuf) -> Self
pub fn init_external(store_path: PathBuf, git_repo_path: PathBuf) -> Self
pub fn load(store_path: PathBuf) -> Self
Trait Implementations
sourceimpl Backend for GitBackend
impl Backend for GitBackend
fn hash_length(&self) -> usize
fn git_repo(&self) -> Option<Repository>
fn read_file(
&self,
_path: &RepoPath,
id: &FileId
) -> BackendResult<Box<dyn Read>>
fn write_file(
&self,
_path: &RepoPath,
contents: &mut dyn Read
) -> BackendResult<FileId>
fn read_symlink(
&self,
_path: &RepoPath,
id: &SymlinkId
) -> Result<String, BackendError>
fn write_symlink(
&self,
_path: &RepoPath,
target: &str
) -> Result<SymlinkId, BackendError>
fn empty_tree_id(&self) -> &TreeId
fn read_tree(&self, _path: &RepoPath, id: &TreeId) -> BackendResult<Tree>
fn write_tree(&self, _path: &RepoPath, contents: &Tree) -> BackendResult<TreeId>
fn read_commit(&self, id: &CommitId) -> BackendResult<Commit>
fn write_commit(&self, contents: &Commit) -> BackendResult<CommitId>
fn read_conflict(&self, id: &ConflictId) -> BackendResult<Conflict>
fn write_conflict(&self, conflict: &Conflict) -> BackendResult<ConflictId>
Auto Trait Implementations
impl RefUnwindSafe for GitBackend
impl Send for GitBackend
impl Sync for GitBackend
impl Unpin for GitBackend
impl UnwindSafe for GitBackend
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