diff options
author | Gioele Pannetto <[email protected]> | 2023-07-27 10:51:04 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2023-07-27 10:51:04 +0200 |
commit | ef26f711c90fd1bbf912e76b298718a84d71cc70 (patch) | |
tree | be7b61f2e4a08b70f077435d091d511a56162f9a | |
parent | c36c30c17bd7088e62f8640ec26bddddc4f50fb4 (diff) | |
download | Hyprland-ef26f711c90fd1bbf912e76b298718a84d71cc70.tar.gz Hyprland-ef26f711c90fd1bbf912e76b298718a84d71cc70.zip |
Added git tag in json version command (#2821)
-rw-r--r-- | src/debug/HyprCtl.cpp | 3 |
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\","; |