pub struct GitInfo {
pub user_name: Option<String>,
pub user_email: Option<String>,
pub dirty: Option<bool>,
pub current_branch: Option<String>,
pub branches: Option<Vec<String>>,
pub head: Head,
pub config: Option<HashMap<String, String>>,
}
Expand description
Holds git info for the given repo directory
Fields§
§user_name: Option<String>
User name
user_email: Option<String>
User email
dirty: Option<bool>
True if there are non commited changes
current_branch: Option<String>
Current branch name
branches: Option<Vec<String>>
All branch names
head: Head
Head information
config: Option<HashMap<String, String>>
Config key/value map
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GitInfo
impl RefUnwindSafe for GitInfo
impl Send for GitInfo
impl Sync for GitInfo
impl Unpin for GitInfo
impl UnwindSafe for GitInfo
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