gitHashFromOmniverseVersion#
Fully qualified name: omni::extras::gitHashFromOmniverseVersion
Defined in omni/extras/Version.h
- inline bool omni::extras::gitHashFromOmniverseVersion(
- const extras::SemanticVersion &version,
- std::string &outHash,
Attempts to parse the Git hash from an Omniverse-specific semantic version.
An Omniverse Flow version format is
<version>+<gitbranch>.<number>.<githash>.<build_location>. This function parses out the<githash>from this format.- Parameters:
version – The SemanticVersion to process
outHash – A reference that receives the Git hash if
trueis returned; iffalseis returned this will be00000000.
- Returns:
trueif parsing succeeded;falseotherwise