pub struct VersionRepository { /* private fields */ }Expand description
Read release-unit versions and heights from Git using tagver traversal semantics.
Implementations§
Source§impl VersionRepository
impl VersionRepository
Sourcepub fn current_version(
&self,
release_unit_id: &str,
template: &str,
) -> Result<Version>
pub fn current_version( &self, release_unit_id: &str, template: &str, ) -> Result<Version>
Find the latest final SemVer matching a release-unit tag template.
Sourcepub fn current_version_before(
&self,
release_unit_id: &str,
template: &str,
excluded_target: ObjectId,
) -> Result<Version>
pub fn current_version_before( &self, release_unit_id: &str, template: &str, excluded_target: ObjectId, ) -> Result<Version>
Find the latest final SemVer before tags created at excluded_target.
Sourcepub fn has_matching_tag(
&self,
release_unit_id: &str,
template: &str,
) -> Result<bool>
pub fn has_matching_tag( &self, release_unit_id: &str, template: &str, ) -> Result<bool>
Return whether at least one matching tag exists on the repository history.
Sourcepub fn height(&self, release_unit_id: &str, template: &str) -> Result<u64>
pub fn height(&self, release_unit_id: &str, template: &str) -> Result<u64>
Count commits on the first-parent chain since the latest matching tag.
Auto Trait Implementations§
impl !Freeze for VersionRepository
impl !RefUnwindSafe for VersionRepository
impl !Sync for VersionRepository
impl !UnwindSafe for VersionRepository
impl Send for VersionRepository
impl Unpin for VersionRepository
impl UnsafeUnpin for VersionRepository
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