pub struct GitRepository {
pub path: String,
pub remotes: Vec<(String, String)>,
pub branch: Option<String>,
pub upstream: Option<String>,
pub commit: Option<String>,
}Expand description
What Git says of a repository in a tree’s copy: what nib reads from the person’s Git,
and gives a commit to record.
Fields§
§path: StringThe folder that holds it, as a path in the tree.
remotes: Vec<(String, String)>Its remotes, each by its name and address, credentials and all: a commit takes them out.
branch: Option<String>The branch it has checked out, if any.
upstream: Option<String>The name of the remote that the branch follows, if it follows one.
commit: Option<String>The commit it has checked out, in full, which a commit records if it is pinned.
Trait Implementations§
Source§impl Clone for GitRepository
impl Clone for GitRepository
Source§impl Debug for GitRepository
impl Debug for GitRepository
impl Eq for GitRepository
Source§impl PartialEq for GitRepository
impl PartialEq for GitRepository
impl StructuralPartialEq for GitRepository
Auto Trait Implementations§
impl Forget for GitRepository
impl Freeze for GitRepository
impl Move for GitRepository
impl RefUnwindSafe for GitRepository
impl Send for GitRepository
impl Sync for GitRepository
impl Unpin for GitRepository
impl UnsafeUnpin for GitRepository
impl UnwindSafe for GitRepository
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.