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 true is returned; if false is returned this will be 00000000.

Returns

true if parsing succeeded; false otherwise