From fa38dfd416b664033a96bb4af764fd54f7257d7b Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 22 Apr 2022 18:33:30 +0200 Subject: Added git dirty --- src/debug/HyprCtl.cpp | 2 +- src/defines.hpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 6986b601..a3a91cca 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -72,7 +72,7 @@ std::string layersRequest() { } std::string versionRequest() { - std::string result = "Hyprland, built from branch " + std::string(GIT_BRANCH) + " at commit " + GIT_COMMIT_HASH + " (" + GIT_COMMIT_MESSAGE + ").\nflags: (if any)\n"; + std::string result = "Hyprland, built from branch " + std::string(GIT_BRANCH) + " at commit " + GIT_COMMIT_HASH + GIT_DIRTY + " (" + GIT_COMMIT_MESSAGE + ").\nflags: (if any)\n"; #ifdef LEGACY_RENDERER result += "legacyrenderer\n"; diff --git a/src/defines.hpp b/src/defines.hpp index 13701a03..a803b985 100644 --- a/src/defines.hpp +++ b/src/defines.hpp @@ -60,4 +60,7 @@ #endif #ifndef GIT_COMMIT_MESSAGE #define GIT_COMMIT_MESSAGE "?" -#endif \ No newline at end of file +#endif +#ifndef GIT_DIRTY +#define GIT_DIRTY "?" +#endif -- cgit v1.2.3