Skip to main content

pick_latest_for_pin

Function pick_latest_for_pin 

Source
pub fn pick_latest_for_pin(tags: &[String], pin: &[u64]) -> Option<String>
Expand description

Pick the SemVer-max release tag from tags whose components match pin’s prefix. Pre-release tags are excluded. The original tag string is returned verbatim (preserving any v prefix) so that callers can use it directly as a git ref name.