Struct hubcaps::git::Git
[−]
[src]
pub struct Git<C> where
C: Clone + Connect, { /* fields omitted */ }
reference to git operations associated with a github repo
Methods
impl<C: Clone + Connect> Git<C>
[src]
fn tree<S>(&self, sha: S, recursive: bool) -> Future<TreeData> where
S: Into<String>,
[src]
S: Into<String>,
list a git tree of files for this repo at a given sha https://developer.github.com/v3/git/trees/#get-a-tree https://developer.github.com/v3/git/trees/#get-a-tree-recursively
fn blob<S>(&self, sha: S) -> Future<Blob> where
S: Into<String>,
[src]
S: Into<String>,
get the blob contents of a given sha https://developer.github.com/v3/git/blobs/#get-a-blob
fn reference<S>(&self, reference: S) -> Future<GetReferenceResponse> where
S: Into<String>,
[src]
S: Into<String>,
get the git reference data of a given ref the specified reference must be formatted as as "heads/branch", not just "branch" https://developer.github.com/v3/git/refs/#get-a-reference