Added git tag in json version command (#2821)

This commit is contained in:
Gioele Pannetto 2023-07-27 10:51:04 +02:00 committed by GitHub
parent c36c30c17b
commit ef26f711c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -658,8 +658,9 @@ std::string versionRequest(HyprCtl::eHyprCtlOutputFormat format) {
"commit": "%s", "commit": "%s",
"dirty": %s, "dirty": %s,
"commit_message": "%s", "commit_message": "%s",
"tag": "%s",
"flags": [)#", "flags": [)#",
GIT_BRANCH, GIT_COMMIT_HASH, (strcmp(GIT_DIRTY, "dirty") == 0 ? "true" : "false"), escapeJSONStrings(commitMsg).c_str()); GIT_BRANCH, GIT_COMMIT_HASH, (strcmp(GIT_DIRTY, "dirty") == 0 ? "true" : "false"), escapeJSONStrings(commitMsg).c_str(), GIT_TAG);
#ifdef LEGACY_RENDERER #ifdef LEGACY_RENDERER
result += "\"legacyrenderer\","; result += "\"legacyrenderer\",";