Skip to main content

tag_commit

Function tag_commit 

Source
pub fn tag_commit(tag: &str) -> Option<String>
Expand description

Resolve a release tag to the commit it points at, if the tag is available locally. Returns None rather than failing — a shallow clone legitimately has no tags, and the caller can still report that precisely.