Struct git_cliff_core::repo::Repository
source · pub struct Repository { /* private fields */ }
Expand description
Wrapper for Repository
type from git2.
Implementations§
source§impl Repository
impl Repository
sourcepub fn commits(
&self,
range: Option<String>,
include_path: Option<Vec<Pattern>>,
exclude_path: Option<Vec<Pattern>>
) -> Result<Vec<Commit<'_>>>
pub fn commits( &self, range: Option<String>, include_path: Option<Vec<Pattern>>, exclude_path: Option<Vec<Pattern>> ) -> Result<Vec<Commit<'_>>>
Parses and returns the commits.
Sorts the commits by their time.
sourcepub fn current_tag(&self) -> Option<String>
pub fn current_tag(&self) -> Option<String>
Returns the current tag.
It is the same as running git describe --tags
Parses and returns a commit-tag map.
It collects lightweight and annotated tags.
Auto Trait Implementations§
impl RefUnwindSafe for Repository
impl Send for Repository
impl !Sync for Repository
impl Unpin for Repository
impl UnwindSafe for Repository
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