aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGioele Pannetto <[email protected]>2023-07-27 10:51:04 +0200
committerGitHub <[email protected]>2023-07-27 10:51:04 +0200
commitef26f711c90fd1bbf912e76b298718a84d71cc70 (patch)
treebe7b61f2e4a08b70f077435d091d511a56162f9a
parentc36c30c17bd7088e62f8640ec26bddddc4f50fb4 (diff)
downloadHyprland-ef26f711c90fd1bbf912e76b298718a84d71cc70.tar.gz
Hyprland-ef26f711c90fd1bbf912e76b298718a84d71cc70.zip
Added git tag in json version command (#2821)
-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\",";