summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.cpp
diff options
context:
space:
mode:
authorGioele Pannetto <gioele@pannetto.com>2023-07-27 10:51:04 +0200
committerGitHub <noreply@github.com>2023-07-27 10:51:04 +0200
commitef26f711c90fd1bbf912e76b298718a84d71cc70 (patch)
treebe7b61f2e4a08b70f077435d091d511a56162f9a /src/debug/HyprCtl.cpp
parentc36c30c17bd7088e62f8640ec26bddddc4f50fb4 (diff)
Added git tag in json version command (#2821)
Diffstat (limited to 'src/debug/HyprCtl.cpp')
-rw-r--r--src/debug/HyprCtl.cpp3
1 files changed, 2 insertions, 1 deletions
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\",";