pub fn detect_git_info(tag: &str, skip_validate: bool) -> Result<GitInfo>Expand description
Detect git info for a given tag.
When skip_validate is true and the tag is not valid semver, a warning is
logged and a default SemVer { 0, 0, 0 } is used instead of returning an error.
When snapshot is true and the working directory is not inside a git
repository, a synthetic GitInfo is returned (commit/branch/etc. left
empty) so users can run anodizer release --snapshot from a fresh tarball
or scratch directory without git ever having been initialized. Outside
snapshot mode, the missing repo bubbles as an error.