pub struct GitDatabase { /* private fields */ }
Expand description
GitDatabase
is a local clone of a remote repository’s database. Multiple
GitCheckouts
can be cloned from this GitDatabase
.
Implementations
sourceimpl GitDatabase
impl GitDatabase
pub fn copy_to(
&self,
rev: Oid,
dest: &Path,
cargo_config: &Config
) -> CargoResult<GitCheckout<'_>>
pub fn to_short_id(&self, revision: Oid) -> CargoResult<GitShortID>
pub fn contains(&self, oid: Oid) -> bool
pub fn resolve(
&self,
r: &GitReference,
remote_and_config: Option<(&Url, &Config)>
) -> CargoResult<Oid>
Trait Implementations
sourceimpl Serialize for GitDatabase
impl Serialize for GitDatabase
Auto Trait Implementations
impl RefUnwindSafe for GitDatabase
impl Send for GitDatabase
impl !Sync for GitDatabase
impl Unpin for GitDatabase
impl UnwindSafe for GitDatabase
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more