[][src]Struct supergit::Repository

pub struct Repository { /* fields omitted */ }

Represents a git repository with lazy data loading

Implementations

impl Repository[src]

pub fn open(path: &str) -> Result<Self, GitError>[src]

Open a repository read-only at a specific path

pub fn branches(&self) -> Result<Vec<Branch>, GitError>[src]

Parse branch data from repository

If you only care about a single branch, you can also use the convenience function get_branch().

Panics

This function can panic when branch metadata is missing.

pub fn branch(&self, name: String) -> Option<Branch>[src]

Get a single branch by name

This function will enumerate all branches, and then select the desired one. If you want to make repeated queries onto the branch set, it's recommended you call branches(), and cache the data yourself.

Trait Implementations

impl Clone for Repository[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.