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.