* Extract the git hash from the revision string. * @param revision_string The revision string (formatted as DATE-BRANCH-GITHASH). * @return The git has part of the revision. */
| 90 | * @return The git has part of the revision. |
| 91 | */ |
| 92 | static std::string_view ExtractNetworkRevisionHash(std::string_view revision_string) |
| 93 | { |
| 94 | size_t index = revision_string.find_last_of('-'); |
| 95 | if (index == std::string::npos) return {}; |
| 96 | return revision_string.substr(index); |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * Checks whether the given version string is compatible with our version. |
no test coverage detected