From ef26f711c90fd1bbf912e76b298718a84d71cc70 Mon Sep 17 00:00:00 2001 From: Gioele Pannetto Date: Thu, 27 Jul 2023 10:51:04 +0200 Subject: [PATCH] Added git tag in json version command (#2821) --- src/debug/HyprCtl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index d01b3ffd..7135aaac 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -658,8 +658,9 @@ std::string versionRequest(HyprCtl::eHyprCtlOutputFormat format) { "commit": "%s", "dirty": %s, "commit_message": "%s", + "tag": "%s", "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 result += "\"legacyrenderer\",";