pub struct GitBackend { /* private fields */ }Expand description
Git backend.
gix::Repository is Send but not Sync (interior mutability via
RefCell). The Mutex restores Sync while still permitting shared
references across threads.
Implementations§
Trait Implementations§
Source§impl VcsBackend for GitBackend
impl VcsBackend for GitBackend
fn status_digest(&self) -> Result<StatusDigest>
fn local_branches(&self) -> Result<Vec<BranchInfo>>
fn remote_branches(&self) -> Result<Vec<BranchInfo>>
fn list_commits(&self) -> Result<Vec<CommitInfo>>
fn list_commits_sorted(&self, order: SortOrder) -> Result<Vec<CommitInfo>>
fn log_since( &self, since: SystemTime, until: SystemTime, ) -> Result<Vec<CommitInfo>>
fn find_commit(&self, id: &CommitId) -> Result<CommitInfo>
fn create_tag(&self, name: &str) -> Result<()>
fn create_annotated_tag(&self, name: &str, message: &str) -> Result<()>
fn delete_tag(&self, name: &str) -> Result<()>
fn diff(&self, from: &CommitId, to: &CommitId) -> Result<DiffSummary>
fn remote_url(&self, name: &str) -> Option<String>
Auto Trait Implementations§
impl !Freeze for GitBackend
impl RefUnwindSafe for GitBackend
impl Send for GitBackend
impl Sync for GitBackend
impl Unpin for GitBackend
impl UnsafeUnpin for GitBackend
impl UnwindSafe for GitBackend
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