Function rg::app::long_version

source ·
pub fn long_version(revision_hash: Option<&str>, cpu: bool) -> String
Expand description

Return the “long” format of ripgrep’s version string.

If a revision hash is given, then it is used. If one isn’t given, then the RIPGREP_BUILD_GIT_HASH env var is inspected for it. If that isn’t set, then a revision hash is not included in the version string returned.

If cpu is true, then the version string will include the compiled and runtime CPU features.