pub(crate) struct History {
pub(crate) baseline_tag: Option<String>,
pub(crate) changed: bool,
pub(crate) conventional: bool,
pub(crate) commits: Vec<Commit>,
}Expand description
What Git reports about one unit since its baseline tag, or since the root commit for a unit that has no tag and is still at 0.0.0.
Fields§
§baseline_tag: Option<String>§changed: bool§conventional: boolWhether a commit format is set, so commits is meaningful.
commits: Vec<Commit>The commits that change the unit, when a commit format is set.
Implementations§
Source§impl History
impl History
Sourcefn collect<G: GitHistory>(
git: &G,
state: &ReleaseState,
request: ConfiguredProposal<'_>,
units: &[Unit],
) -> Result<BTreeMap<String, Self>, ProposalError>
fn collect<G: GitHistory>( git: &G, state: &ReleaseState, request: ConfiguredProposal<'_>, units: &[Unit], ) -> Result<BTreeMap<String, Self>, ProposalError>
Collect each unit’s baseline tag, change status, and, with a commit format, the commits since that tag from Git.
Source§impl History
impl History
Sourcefn mark_empty_digests(
history: &mut BTreeMap<String, Self>,
repository: &RepositoryRoot,
units: &[Unit],
versions: &BTreeMap<String, Proposed>,
) -> Result<bool, ProposalError>
fn mark_empty_digests( history: &mut BTreeMap<String, Self>, repository: &RepositoryRoot, units: &[Unit], versions: &BTreeMap<String, Proposed>, ) -> Result<bool, ProposalError>
Mark a released dependency as changed when a unit of versions holds
an empty digest pin for it. Only a release of the dependency fills the
digest. Returns whether a unit was marked.
Trait Implementations§
impl Eq for History
impl StructuralPartialEq for History
Auto Trait Implementations§
impl Freeze for History
impl RefUnwindSafe for History
impl Send for History
impl Sync for History
impl Unpin for History
impl UnsafeUnpin for History
impl UnwindSafe for History
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.