Struct cargo::sources::git::GitDatabase [] [src]

pub struct GitDatabase {
    // some fields omitted
}

GitDatabase is a local clone of a remote repository's database. Multiple GitCheckouts can be cloned from this GitDatabase.

Methods

impl GitDatabase

fn copy_to(&self, rev: GitRevision, dest: &Path) -> CargoResult<GitCheckout>

fn rev_for(&self, reference: &GitReference) -> CargoResult<GitRevision>

fn has_ref(&self, reference: &str) -> CargoResult<()>

Trait Implementations

impl Encodable for GitDatabase

fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>