pub struct Repository { /* private fields */ }Implementations§
Source§impl Repository
impl Repository
pub fn file_churn( &self, range: ChurnRange, ) -> Result<FileChurnSummary, GitError>
pub fn co_change_coupling( &self, range: ChurnRange, max_commit_files: usize, allowed_paths: &BTreeSet<RepoPath>, ) -> Result<CoChangeSummary, GitError>
Source§impl Repository
impl Repository
pub fn first_parent_history( &self, range: CommitRange, ) -> Result<Vec<HistoryCommit>, GitError>
Source§impl Repository
impl Repository
pub fn read_working_tree_file_following_symlinks( &self, path: &RepoPath, ) -> Result<SnapshotFileLookup, GitError>
pub fn read_commit_file_following_symlinks_bounded( &self, commit: CommitId, path: &RepoPath, max_bytes: u64, ) -> Result<SnapshotFileLookup, GitError>
Source§impl Repository
impl Repository
pub fn init(folder: &Path) -> Result<Repository, GitError>
pub fn discover(start: &Path) -> Result<Repository, GitError>
pub fn root(&self) -> &Path
pub fn working_tree(&self) -> Result<Snapshot, GitError>
pub fn resolve(&self, git_ref: &str) -> Result<CommitId, GitError>
pub fn merge_base_with_head(&self, base_ref: &str) -> Result<CommitId, GitError>
pub fn merge_base( &self, base_ref: &str, head_ref: &str, ) -> Result<CommitId, GitError>
pub fn commit(&self, commit: CommitId) -> Result<Snapshot, GitError>
pub fn changed_files_since( &self, base_ref: &str, ) -> Result<ChangedFiles, GitError>
Auto Trait Implementations§
impl !Freeze for Repository
impl !RefUnwindSafe for Repository
impl !Sync for Repository
impl !UnwindSafe for Repository
impl Forget for Repository
impl Move for Repository
impl Send for Repositorywhere
RawVecInner: Send,
Arc<SharedFileSnapshotMut<Buffer>>: Send,
Arc<Store>: Send,
RefCell<Snapshot>: Send,
RefCell<Inflate>: Send,
RefCell<Option<u64>>: Send,
Arc<dyn Fn() -> Box<dyn DecodeEntry + Send> + Sync + Send>: Send,
Arc<dyn Fn() -> Box<dyn Object + Send> + Sync + Send>: Send,
RefCell<Box<dyn DecodeEntry + Send>>: Send,
RefCell<Box<dyn Object + Send>>: Send,
RefCell<Storage>: Send,
RefCell<Vec<Vec<u8>>>: Send,
Arc<File>: Send,
OnceCell<String>: Send,
OnceCell<Personas>: Send,
OnceCell<Rewrite>: Send,
BoxRaw<Path>: Send,
Arc<SharedFileSnapshotMut<File>>: Send,
Arc<SharedFileSnapshotMut<File>>: Send,
Arc<SharedFileSnapshotMut<NonEmpty<ObjectId>>>: Send,
impl Unpin for Repositorywhere
*const u8 is !null: Unpin,
Arc<SharedFileSnapshotMut<Buffer>>: Unpin,
Arc<Store>: Unpin,
Arc<File>: Unpin,
Arc<File>: Unpin,
Arc<File>: Unpin,
Arc<Vec<Store>>: Unpin,
*mut u8: Unpin,
*mut i8: Unpin,
&'static mut State<'static>: Unpin,
*mut c_void: Unpin,
&'static (): Unpin,
Arc<dyn Fn() -> Box<dyn DecodeEntry + Send> + Sync + Send>: Unpin,
Arc<dyn Fn() -> Box<dyn Object + Send> + Sync + Send>: Unpin,
Box<dyn DecodeEntry + Send>: Unpin,
Box<dyn Object + Send>: Unpin,
Arc<File>: Unpin,
Align8<*mut Waiter>: Unpin,
Arc<BString>: Unpin,
Box<Path>: Unpin,
Arc<SharedFileSnapshotMut<File>>: Unpin,
Arc<SharedFileSnapshotMut<File>>: Unpin,
Arc<SharedFileSnapshotMut<NonEmpty<ObjectId>>>: Unpin,
impl UnsafeUnpin for Repositorywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<SharedFileSnapshotMut<Buffer>> is !null: UnsafeUnpin,
PhantomData<ArcInner<SharedFileSnapshotMut<Buffer>>>: UnsafeUnpin,
*const ArcInner<Store> is !null: UnsafeUnpin,
PhantomData<ArcInner<Store>>: UnsafeUnpin,
PhantomData<IndexLookup>: UnsafeUnpin,
*const ArcInner<Vec<Store>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<Store>>>: UnsafeUnpin,
*mut u8: UnsafeUnpin,
*mut i8: UnsafeUnpin,
&'static mut State<'static>: UnsafeUnpin,
*mut c_void: UnsafeUnpin,
PhantomData<&'static ()>: UnsafeUnpin,
*const ArcInner<dyn Fn() -> Box<dyn DecodeEntry + Send> + Sync + Send> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Fn() -> Box<dyn DecodeEntry + Send> + Sync + Send>>: UnsafeUnpin,
*const ArcInner<dyn Fn() -> Box<dyn Object + Send> + Sync + Send> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Fn() -> Box<dyn Object + Send> + Sync + Send>>: UnsafeUnpin,
*const dyn DecodeEntry + Send is !null: UnsafeUnpin,
PhantomData<dyn DecodeEntry + Send>: UnsafeUnpin,
*const dyn Object + Send is !null: UnsafeUnpin,
PhantomData<dyn Object + Send>: UnsafeUnpin,
PhantomData<(ObjectId, (Kind, Vec<u8>))>: UnsafeUnpin,
PhantomData<Vec<u8>>: UnsafeUnpin,
*const ArcInner<File> is !null: UnsafeUnpin,
PhantomData<ArcInner<File>>: UnsafeUnpin,
Align8<*mut Waiter>: UnsafeUnpin,
PhantomData<Replace>: UnsafeUnpin,
PhantomData<BString>: UnsafeUnpin,
*const Path is !null: UnsafeUnpin,
PhantomData<Path>: UnsafeUnpin,
*const ArcInner<SharedFileSnapshotMut<File>> is !null: UnsafeUnpin,
PhantomData<ArcInner<SharedFileSnapshotMut<File>>>: UnsafeUnpin,
*const ArcInner<SharedFileSnapshotMut<File>> is !null: UnsafeUnpin,
PhantomData<ArcInner<SharedFileSnapshotMut<File>>>: UnsafeUnpin,
*const ArcInner<SharedFileSnapshotMut<NonEmpty<ObjectId>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<SharedFileSnapshotMut<NonEmpty<ObjectId>>>>: UnsafeUnpin,
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